Свойство | Type | Description | |
---|---|---|---|
$currentUser | static | ||
$signedIn | boolean |
Méthode | Description | |
---|---|---|
__construct ( ) | Controller constructor. | |
setPageTitle ( $title ) | Adds the page title into the view. |
Méthode | Description | |
---|---|---|
buildFailedValidationResponse ( Illuminate\Http\Request $request, array $errors ) : |
Create the response for when a request fails validation. | |
checkOwnablePermission ( $permission, |
Check the current user's permissions against an ownable item. | |
checkPermission ( string $permissionName ) : boolean | Illuminate\Http\RedirectResponse | Checks for a permission. | |
checkPermissionOr ( $permissionName, $callback ) : boolean | Check if a user has a permission or bypass if the callback is true. | |
jsonError ( string $messageText = "", integer $statusCode = 500 ) : mixed | Send back a json error message. | |
preventAccessForDemoUsers ( ) | Stops the application and shows a permission error if the application is in demo mode. | |
showPermissionError ( ) | On a permission error redirect to home and display. |
protected buildFailedValidationResponse ( Illuminate\Http\Request $request, array $errors ) : |
||
$request | Illuminate\Http\Request | |
$errors | array | |
Résultat |
protected checkOwnablePermission ( $permission, |
||
$permission | ||
$ownable | ||
Résultat | boolean |
protected checkPermission ( string $permissionName ) : boolean | Illuminate\Http\RedirectResponse | ||
$permissionName | string | |
Résultat | boolean | Illuminate\Http\RedirectResponse |
protected checkPermissionOr ( $permissionName, $callback ) : boolean | ||
$permissionName | ||
$callback | ||
Résultat | boolean |
protected preventAccessForDemoUsers ( ) |
public setPageTitle ( $title ) | ||
$title |
protected showPermissionError ( ) |