CheckForMaintenanceMode
class CheckForMaintenanceMode extends PreventRequestsDuringMaintenance (View source)
Traits
Properties
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 |
Methods
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.
Details
protected bool
inExceptArray(Request $request)
Determine if the request has a URI that should be excluded.
array
getExcludedPaths()
Get the URIs that should be excluded.
void
__construct(Application $app)
Create a new middleware instance.
protected bool
hasValidBypassCookie(Request $request, array $data)
Determine if the incoming request has a maintenance mode bypass cookie.
protected RedirectResponse
bypassResponse(string $secret)
Redirect the user back to the root of the application with a maintenance mode bypass cookie.
protected array
getHeaders(array $data)
Get the headers that should be sent with the response.
static void
except(array|string $uris)
Indicate that the given URIs should always be accessible.
static void
flushState()
Flush the state of the middleware.