class CheckForMaintenanceMode extends PreventRequestsDuringMaintenance (View source)
protected Application | $app | The application implementation. | from PreventRequestsDuringMaintenance |
protected array | $except | The URIs that should be accessible while maintenance mode is enabled. | from PreventRequestsDuringMaintenance |
void | __construct(Application $app) Create a new middleware instance. | from PreventRequestsDuringMaintenance |
mixed | handle(Request $request, Closure $next) Handle an incoming request. | from PreventRequestsDuringMaintenance |
bool | hasValidBypassCookie(Request $request, array $data) Determine if the incoming request has a maintenance mode bypass cookie. | from PreventRequestsDuringMaintenance |
bool | inExceptArray(Request $request) Determine if the request has a URI that should be accessible in maintenance mode. | from PreventRequestsDuringMaintenance |
RedirectResponse | bypassResponse(string $secret) Redirect the user back to the root of the application with a maintenance mode bypass cookie. | from PreventRequestsDuringMaintenance |
Create a new middleware instance.
Determine if the incoming request has a maintenance mode bypass cookie.
Determine if the request has a URI that should be accessible in maintenance mode.
Redirect the user back to the root of the application with a maintenance mode bypass cookie.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.html