title: get the request values in Laravel
body: <p>I wish to make search query by datepicker and select field.
  How could I get the requests values from below view file to controller?
  Where could I modify in the code? thanks.</p>
  
  <p><strong>index.blade.php</strong></p>
  
  <pre><code>&lt;div class="form-group col-sm-6"&gt;
      {!! Form::open(array('class' =&gt; 'form', 'method' =&gt; 'get', 'url' =&gt; url('/pdfs/job_finished_search'))) !!} 
         {!! Form::input('text', 'datepicker_from', null, ['placeholder' =&gt; 'Fra', 'id' =&gt; 'datepicker_from']) !!}
         {!! Form::input('text', 'datepicker_to', null, ['placeholder' =&gt; 'Til', 'id' =&gt; 'datepicker_to']) !!} 
         {!! Form::select('customer_name', $jobs-&gt;pluck('customer_name', 'customer_name')-&gt;all(), null, ['class' =&gt; 'form-control']) !!}
         {!! Form::submit('Søke', ['class' =&gt; 'btn btn-success btn-sm']) !!} 
      {!! Form::close() !!}
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller.php</strong></p>
  
  <pre><code>public function job_finished_search(Request $request, Job $jobs)
  {
  
      $jobs = Job::onlyTrashed()
              -&gt;whereBetween('created_at', array(
                (Carbon::parse($request-&gt;input('datepicker_from'))-&gt;startOfDay()),
                (Carbon::parse($request-&gt;input('datepicker_to'))-&gt;endOfDay())))
              -&gt;where('customer_name', 'like', '%'.$request-&gt;customer_name.'%')
              -&gt;orderBy('deleted_at', 'desc')
              -&gt;paginate(15);
  
         if (empty($jobs)){
             Flash::error('Search result not found');
      }
  
      return view('pdfs.index', ['jobs' =&gt; $jobs]); 
  }
  </code></pre>