Complete the code to register a global middleware in Laravel's HTTP kernel.
protected $middleware = [
\App\Http\Middleware\TrustProxies::class,
[1],
];The CheckForMaintenanceMode middleware is commonly registered globally to handle maintenance mode checks.
Complete the code to add a custom global middleware class named LogRequests.
protected $middleware = [
[1],
];::class suffix.To register a custom global middleware, add its fully qualified class name to the $middleware array.
Fix the error in the middleware registration by completing the missing part.
protected $middleware = [
\App\Http\Middleware\[1]::class,
];The TrustProxies middleware is a default global middleware that handles proxy headers.
Fill both blanks to correctly add two global middleware classes: CheckForMaintenanceMode and ValidatePostSize.
protected $middleware = [
[1],
[2],
];Both CheckForMaintenanceMode and ValidatePostSize are common global middleware classes in Laravel.
Fill all three blanks to create a global middleware array with TrustProxies, CheckForMaintenanceMode, and ValidatePostSize.
protected $middleware = [
[1],
[2],
[3],
];::class.The global middleware stack often includes TrustProxies, CheckForMaintenanceMode, and ValidatePostSize in this order.