%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/RoleDoesNotExist.php

<?php

namespace Spatie\Permission\Exceptions;

use InvalidArgumentException;

class RoleDoesNotExist extends InvalidArgumentException
{
    public static function named(string $roleName)
    {
        return new static("There is no role named `{$roleName}`.");
    }

    public static function withId(int $roleId)
    {
        return new static("There is no role with id `{$roleId}`.");
    }
}

Zerion Mini Shell 1.0