src/Models/Permission.php 1 location
|
@@ 136-138 (lines=3) @@
|
| 133 |
|
return null; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
if (! isset($params['guard_name']) || empty($params['guard_name'])) { |
| 137 |
|
$params['guard_name'] = Guard::getDefaultName(static::class); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
$permission = static::getPermissions($params)->first(); |
| 141 |
|
|
src/Models/Role.php 1 location
|
@@ 126-128 (lines=3) @@
|
| 123 |
|
return null; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
if (! isset($params['guard_name']) || empty($params['guard_name'])) { |
| 127 |
|
$params['guard_name'] = Guard::getDefaultName(static::class); |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
$role = static::where('name', $params['name']); |
| 131 |
|
|