class CheckForMaintenanceMode extends PreventRequestsDuringMaintenance (View source)
| ExcludesPaths |
| protected Application | $app | The application implementation. | from PreventRequestsDuringMaintenance |
| protected array<int,string> | $except | The URIs that should be excluded. | from PreventRequestsDuringMaintenance |
| static protected array | $neverPrevent | The URIs that should be accessible during maintenance. | from PreventRequestsDuringMaintenance |
| bool | inExceptArray(Request $request)
Determine if the request has a URI that should be excluded. | from ExcludesPaths |
| array | getExcludedPaths()
Get the URIs that should be excluded. | from ExcludesPaths |
| 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 |
| RedirectResponse | bypassResponse(string $secret)
Redirect the user back to the root of the application with a maintenance mode bypass cookie. | from PreventRequestsDuringMaintenance |
| array | getHeaders(array $data)
Get the headers that should be sent with the response. | from PreventRequestsDuringMaintenance |
| static void | except(array|string $uris)
Indicate that the given URIs should always be accessible. | from PreventRequestsDuringMaintenance |
| static void | flushState()
Flush the state of the middleware. | from PreventRequestsDuringMaintenance |
Determine if the request has a URI that should be excluded.
Get the URIs that should be excluded.
Create a new middleware instance.
Determine if the incoming request has a maintenance mode bypass cookie.
Redirect the user back to the root of the application with a maintenance mode bypass cookie.
Get the headers that should be sent with the response.
Indicate that the given URIs should always be accessible.
Flush the state of the middleware.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.html