Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Updating Laravel HTTP Kernel with new Middleware
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
protected $middleware = [
// ..
\App\Http\Middleware\InputTrim::class,
];
protected $middlewareGroups = [
// ...
];
protected $routeMiddleware = [
// ...
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.