Skip to content

Commit

Permalink
Str::is replace str_is
Browse files Browse the repository at this point in the history
  • Loading branch information
AdolphYu committed Oct 20, 2020
1 parent 7e2ae7e commit f7f0a1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entrust/Traits/EntrustUserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use InvalidArgumentException;
use Illuminate\Support\Str;

trait EntrustUserTrait
{
Expand Down Expand Up @@ -162,7 +163,7 @@ public function can($permission, $requireAll = false)
foreach ($this->cachedRoles() as $role) {
// Validate against the Permission table
foreach ($role->cachedPermissions() as $perm) {
if (str_is( $permission, $perm->name) ) {
if (Str::is( $permission, $perm->name) ) {
return true;
}
}
Expand Down

0 comments on commit f7f0a1e

Please sign in to comment.