update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Spatie\Permission\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Spatie\Permission\Exceptions\RoleDoesNotExist;
|
||||
|
||||
/**
|
||||
* @property int|string $id
|
||||
@@ -24,7 +25,7 @@ public function permissions(): BelongsToMany;
|
||||
* Find a role by its name and guard name.
|
||||
*
|
||||
*
|
||||
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
|
||||
* @throws RoleDoesNotExist
|
||||
*/
|
||||
public static function findByName(string $name, ?string $guardName): self;
|
||||
|
||||
@@ -32,7 +33,7 @@ public static function findByName(string $name, ?string $guardName): self;
|
||||
* Find a role by its id and guard name.
|
||||
*
|
||||
*
|
||||
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
|
||||
* @throws RoleDoesNotExist
|
||||
*/
|
||||
public static function findById(int|string $id, ?string $guardName): self;
|
||||
|
||||
@@ -44,7 +45,7 @@ public static function findOrCreate(string $name, ?string $guardName): self;
|
||||
/**
|
||||
* Determine if the user may perform the given permission.
|
||||
*
|
||||
* @param string|int|\Spatie\Permission\Contracts\Permission|\BackedEnum $permission
|
||||
* @param string|int|Permission|\BackedEnum $permission
|
||||
*/
|
||||
public function hasPermissionTo($permission, ?string $guardName): bool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user