File "RoleDoesNotExist.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-permission/src/Exceptions/RoleDoesNotExist.php
File size: 699 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Spatie\Permission\Exceptions;
use InvalidArgumentException;
class RoleDoesNotExist extends InvalidArgumentException
{
public static function named(string $roleName, ?string $guardName)
{
return new static(__('There is no role named `:role` for guard `:guard`.', [
'role' => $roleName,
'guard' => $guardName,
]));
}
/**
* @param int|string $roleId
* @return static
*/
public static function withId($roleId, ?string $guardName)
{
return new static(__('There is no role with ID `:id` for guard `:guard`.', [
'id' => $roleId,
'guard' => $guardName,
]));
}
}