title: How to redirect user to custom URL (view)?
body: <p>I have such URL in Laravel 5: </p>
  
  <pre><code>domain.com/search-user/email@domain.net
  </code></pre>
  
  <p>When I enter this URL, it automatically searches data by given email.</p>
  
  <p>How I should redirect user from other controller to this URL?</p>
  
  <p>I have tried, but it doesn't work:</p>
  
  <pre><code>return view(‘controller.search-user')-&gt;with('email', $request-&gt;email);
  </code></pre>
  
  <p>My routes file:</p>
  
  <pre><code>Route::post('/search-user', 'tnt6weeklistController@postSearchUser');
  Route::get('/search-user/{email}', 'tnt6weeklistController@postSearchUser');
  </code></pre>
  
  <p>-------SOLVED----------
  Solved issue only with this code (maybe it is not the best practice, but other solutions didn't worked):</p>
  
  <pre><code>return \Redirect::to('http://domain.com/search-user/'.$request-&gt;email);
  </code></pre>