D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
dateitor
/
public_html
/
vendor
/
spatie
/
laravel-permission
/
src
/
Exceptions
/
Filename :
GuardDoesNotMatch.php
back
Copy
<?php namespace Spatie\Permission\Exceptions; use Illuminate\Support\Collection; use InvalidArgumentException; 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}`."); } }