Méthode |
Description |
|
getModelFromRequest ( mixed $request, string $boundModelName ) : Model | null |
Get the model from the request using given boundModelName. |
|
handleUnauthorizedRequest ( $request, string | null $ability = null, Model | null $model = null ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | Response |
Handle the unauthorized request. |
|
hasRequiredAbility ( $user, string | null $ability = null, Model | null $model = null ) : boolean |
Determine if the currently logged in use has the given ability. |
|