title: laravel use session to store input field and pass to another page
body: <p>Im new in laravel I have form with input fields but I want to send the input values and dispaly in other page using session to check them later
  <strong><em>Please answer with code please</em></strong></p>
  
  <p><strong>Form:</strong></p>
  
  <pre><code>   &lt;form id="booking-form"&gt;
   &lt;input class="indexinput" type="text" id="country" name="country" 
   placeholder="Country"&gt;
  &lt;input class="indexinput" type="text" id="state" name="state" 
  placeholder="State"&gt;
  &lt;input class="indexinput" type="text" id="city" name="city" placeholder="city"&gt;
  &lt;/form&gt;
  
   &lt;button class="button getbids" &gt;GET BIDS&lt;/button&gt; 
  
  
   &lt;script type="text/javascript"&gt;
    $(document).on('click', '.getbids', function() {
    var loggedIn = {{ auth()-&gt;check() ? 'true' : 'false' }};
     if (loggedIn)
    window.location.replace('customer/dashboard');
    if(!loggedIn)
    $('#loginModal').modal('show'); 
     });
     &lt;/script&gt;
  </code></pre>
  
  <p><strong>Route</strong></p>
  
  <pre><code>  Route::group(['middleware'=&gt;['rolecustomer']], function () {
  
    Route::get('/customer/dashboard', 'HomeController@index')-&gt;name('customer.dashboard');
   });
  </code></pre>
  
  <p><strong>controller:</strong></p>
  
  <pre><code>  public function index()
     {
     return view('index.customer.customerdashboard');
       }
  </code></pre>