Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created February 21, 2017 13:18
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