File "RoleAlreadyExists.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-permission/src/Exceptions/RoleAlreadyExists.php
File size: 388 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Spatie\Permission\Exceptions;
use InvalidArgumentException;
class RoleAlreadyExists extends InvalidArgumentException
{
public static function create(string $roleName, string $guardName)
{
return new static(__('A role `:role` already exists for guard `:guard`.', [
'role' => $roleName,
'guard' => $guardName,
]));
}
}