Skip to content

Commit

Permalink
replace str_is old function to new
Browse files Browse the repository at this point in the history
  • Loading branch information
bahadorbzd committed Sep 28, 2021
1 parent e085d2d commit 79f2106
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 79f2106

Please sign in to comment.