class
Illuminate
/
Foundation
/
Http
/
Middleware
/
PreventRequestsDuringMaintenance
You are viewing an older version of the documentation. For the latest, please visit master documentation.
PreventRequestsDuringMaintenance
Properties
protected
$except array
The URIs that should be accessible while maintenance mode is enabled.
Default: []
Methods
public
__construct ( Application $app ) : void
Create a new middleware instance.
Parameters
- $app Application
protected
hasValidBypassCookie ( $request , array $data ) : bool
Determine if the incoming request has a maintenance mode bypass cookie.
Parameters
- $request Request
- $data array
protected
inExceptArray ( $request ) : bool
Determine if the request has a URI that should be accessible in maintenance mode.
Parameters
- $request Request
protected
bypassResponse ( string $secret ) : RedirectResponse
Redirect the user back to the root of the application with a maintenance mode bypass cookie.
Parameters
- $secret string
protected
getHeaders ( $data ) : array
Get the headers that should be sent with the response.
Parameters
- $data array
public
getExcludedPaths ( ) : array
Get the URIs that should be accessible even when maintenance mode is enabled.