CheckForMaintenanceMode

class CheckForMaintenanceMode (View source)

Properties

protected Application $app The application implementation.
protected array $except The URIs that should be accessible while maintenance mode is enabled.

Methods

void __construct(Application $app)

Create a new middleware instance.

mixed handle(Request $request, Closure $next)

Handle an incoming request.

bool inExceptArray(Request $request)

Determine if the request has a URI that should be accessible in maintenance mode.

Details

void __construct(Application $app)

Create a new middleware instance.

Parameters

Application $app

Return Value

void

mixed handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

mixed

Exceptions

HttpException
MaintenanceModeException

protected bool inExceptArray(Request $request)

Determine if the request has a URI that should be accessible in maintenance mode.

Parameters

Request $request

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.html