%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hrsys/api/vendor/spatie/laravel-permission/src/Exceptions/
Upload File :
Create Path :
Current File : /var/www/html/hrsys/api/vendor/spatie/laravel-permission/src/Exceptions/GuardDoesNotMatch.php

<?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}`.");
    }
}

Zerion Mini Shell 1.0