update inbox list
This commit is contained in:
14
vendor/spatie/laravel-permission/src/Exceptions/GuardDoesNotMatch.php
vendored
Normal file
14
vendor/spatie/laravel-permission/src/Exceptions/GuardDoesNotMatch.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\Permission\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class GuardDoesNotMatch extends InvalidArgumentException
|
||||
{
|
||||
public static function create(string $givenGuard, Collection $expectedGuards)
|
||||
{
|
||||
return new static("The given role or permission should use guard `{$expectedGuards->implode(', ')}` instead of `{$givenGuard}`.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user