title: return view with parameters in laravel
body: <p>I have a return in my controller like this:</p>
  
  <pre><code>    return view('frontend.bike')-&gt;with('message', 'Bike Created');
  </code></pre>
  
  <p>It directs correctly view, however I want to pass it two variables that are needed.  Currently I have it routing via:</p>
  
  <pre><code>Route::get('b/{bikename}/{type?}', ['as' =&gt; 'bike', 'uses' =&gt; 'FrontendController@bike']);
  </code></pre>
  
  <p>How can I include a bikename and type to the return to make sure it goes to the correct page.</p>