title: laravel middleware. Most efficient way
body: <p>At the moment I'm working with laravel 5 project, which contains ~100 post and get routes. I'm trying to add middlewares here but logics behind this project is really complicated. Middlewares will do really important role here. Before I was using groups, for example:</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function(){
        //routes
  });
  </code></pre>
  
  <p>But everything became really messy since I had to create groups in group, for example:</p>
  
  <pre><code> Route::group(['middleware' =&gt; 'auth'], function(){
            Route::group(['middleware' =&gt; 'status'], function(){
                 //routes
            });
      });
  </code></pre>
  
  <p>At the moment I have 20 controllers, so each of them contains about 5 routes. Could you suggest me more efficent way to use middlewares in big projects. What way do you use? Thanks in advance!</p>