title: laravel how to make middleware redirect
body: <p>I have create form for user to comment in my post but I want need check Auth has Login before submit the form. How can i do that ?</p>
  
  <p>For me I have use middleware to protect it, But If use not login it redirect to Login Form when user has been login it is not redirect back to posts route<code>/show-posts/{post}</code>,It redirect to back to route<code>/comments</code> . How can i solve this ?</p>
  
  <p>URL Show Single Post</p>
  
  <pre><code>Route::get( '/show-post/{post}', 'HomePageController@single_show')
       -&gt;name('home.post.show' );
  </code></pre>
  
  <p>URL form Comments form </p>
  
  <pre><code>Route::resource('/comments', 'CommentsController');
  </code></pre>
  
  <p>CommentsController</p>
  
  <pre><code>public function __construct() {
      $this-&gt;middleware( 'auth')-&gt;except(['index', 'show']);
  }
  </code></pre>