PHP Class App\Http\Middleware\PermissionsRequired

Show file Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$actions array

Public Methods

Method Description
addPermission ( Controller $controller, array $permissions ) add a controller's action permission
handle ( Illuminate\Http\Request $request, Closure $next, string $guard = 'user' ) : mixed Handle an incoming request.

Method Details

addPermission() public static method

add a controller's action permission
public static addPermission ( Controller $controller, array $permissions )
$controller App\Http\Controllers\Controller
$permissions array

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, string $guard = 'user' ) : mixed
$request Illuminate\Http\Request
$next Closure
$guard string
return mixed

Property Details

$actions protected static property

protected static array $actions
return array