HOME


Mini Shell 1.0
DIR: /home/cardxfeb/www/vendor/spatie/laravel-permission/src/Exceptions/
Upload File :
Current File : //home/cardxfeb/www/vendor/spatie/laravel-permission/src/Exceptions/PermissionAlreadyExists.php
<?php

namespace Spatie\Permission\Exceptions;

use InvalidArgumentException;

class PermissionAlreadyExists extends InvalidArgumentException
{
    public static function create(string $permissionName, string $guardName)
    {
        return new static("A `{$permissionName}` permission already exists for guard `{$guardName}`.");
    }
}