Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created February 21, 2017 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/4e197774a0f0f62e5fa1464b158d5ad4 to your computer and use it in GitHub Desktop.
Save niraj-shah/4e197774a0f0f62e5fa1464b158d5ad4 to your computer and use it in GitHub Desktop.
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