PreventRequestsDuringMaintenance
class PreventRequestsDuringMaintenance
Traits
Properties
| protected array<int, string> | $except | The URIs that should be excluded. |
|
| static protected array<int, string> | $neverPrevent | The URIs that should be accessible during maintenance. |
Methods
Get the URIs that should be excluded.
Determine if the incoming request has a maintenance mode bypass cookie.
Redirect the user to their intended destination 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 all static state.
Details
in
ExcludesPaths at line 14
protected bool
inExceptArray(Request $request)
Determine if the request has a URI that should be excluded.
at line 137
array
getExcludedPaths()
Get the URIs that should be excluded.
at line 37
__construct(Application $app)
Create a new middleware instance.
at line 100
protected bool
hasValidBypassCookie(Request $request, array $data)
Determine if the incoming request has a maintenance mode bypass cookie.
at line 113
protected mixed
bypassResponse(string $secret)
Redirect the user to their intended destination with a maintenance mode bypass cookie.
at line 123
protected array
getHeaders(array $data)
Get the headers that should be sent with the response.
at line 148
static void
except(array|string $uris)
Indicate that the given URIs should always be accessible.
Boot-only. The list persists in a static property for the worker lifetime and applies to every subsequent request.
at line 158
static void
flushState()
Flush all static state.