title: middleware laravel not work in Route::any
body: <p>I was a ASP.NET MVC developer and now I try to learn Laravel Framework but I have problem with Middleware.
  We have a default route in ASP.NET MVC and this route help us to know witch controller or action in use now and this a default route:</p>
  
  <pre><code>routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                  ); 
  </code></pre>
  
  <p>We use some key word in our controller for control our middleware for example :</p>
  
  <pre><code>[Authentication]
  public class HomeController : BaseController {
  
  </code></pre>
  
  <p>I try to create this route in Laravel, after many try I create this route and this is my route</p>
  
  <pre><code>Route::any('/{controller?}/{action?}', function($controller = "", $action = ""){
      $app = app();
  
      if( empty($action) &amp;&amp; empty($controller) ){
          $controller = "Home";
          $action .= "Index";
      }
  
      if( isset($controller) &amp;&amp; empty($action) ){
          $action .= ucfirst($controller);
          $controller = "Home";
      }
  
      $action = strtolower(request()-&gt;getMethod()) . ucfirst($action);
      $controller = 'App\Http\Controllers\\' . ucfirst($controller) . 'Controller';
  
      if( ! class_exists($controller) ){
          throw new \Symfony\Component\HttpKernel\Exception\NotFoundHttpException();
      }
  
      $controller = $app-&gt;make($controller);
  
      if ( ! method_exists( $controller, $action ) ){
          throw new \Symfony\Component\HttpKernel\Exception\NotFoundHttpException();
      }
  
      return $controller-&gt;callAction($action, [request()]);
  });
  </code></pre>
  
  <p>For set middleware I try in controller </p>
  
  <pre><code>class HomeController extends Controller
  {
  
      public function __construct()
      {
          $this-&gt;middleware('auth');
      }
  
  </code></pre>
  
  <p>but middleware not work.</p>