class
Illuminate
/
Foundation
/
Http
/
Middleware
/
PreventRequestsDuringMaintenance
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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.