App\Http\Middleware\PermissionsRequired::addPermission PHP 메소드

addPermission() 공개 정적인 메소드

add a controller's action permission
public static addPermission ( Controller $controller, array $permissions )
$controller App\Http\Controllers\Controller
$permissions array
    public static function addPermission(Controller $controller, array $permissions)
    {
        static::$actions[get_class($controller)] = $permissions;
    }
PermissionsRequired