title: Redirect to Login page if ther user not logged in Laravel
body: <p>I am using Laravel version 5. I have a route file for my project which contains plenty of lines. I need to put authentication like Redirect to login page if the user is not logged in. And I also want to prevent direct URL access if the user not logged in. What can I do? </p>
  
  <p>And I have used below code</p>
  
  <pre><code>Route::group(array('before' =&gt; 'auth'), function(){
      Route::get('/', 'HomeController@index');
  });
  </code></pre>
  
  <p>But this prevents only for home page. I need to protect All my routes. And also suggest me how to reduce route file lines.</p>