title: Laravel - Form Action to Controller Function
body: <p>I'm trying to create a situation where a user can load a page, select a timesheet number, and then have the system delete all records associated with that timesheet number. This function loads the form page:</p>
  
  <pre><code> public function deletetimesheetLoad()
  {
  
      $timesheets = collect(DB::select("SELECT dbo.TIME.Source AS Source
          FROM dbo.TIME
          GROUP BY dbo.TIME.Source
          ORDER BY dbo.TIME.Source ASC"));
  
      return view('utilities/deletetimesheet',['timesheets' =&gt; $timesheets]);
  }
  </code></pre>
  
  <p>This is the actual blade template:</p>
  
  <pre><code> &lt;form method="post"
              action="{{url('/time/deletetimesheet/process')}}"
              enctype="multipart/form-data"
   &lt;div class="form-group"&gt;
            &lt;label class="col-md-12 control-label" for="TIMESHEETNUMBER"&gt;Timesheet Number&lt;/label&gt;
            &lt;div class="col-md-12"&gt;
              &lt;select required id="TIMESHEETNUMBER" name="TIMESHEETNUMBER" class="form-control select2_field"&gt;
                  &lt;option value=""&gt;&lt;/option&gt;
              @foreach ($timesheets as $row)
                  &lt;option value="{{ $row-&gt;Source }}"&gt;{{ $row-&gt;Source }}&lt;/option&gt;
              @endforeach
              &lt;/select&gt;
            &lt;/div&gt;
          &lt;/div&gt;
   &lt;div id="saveActions" class="form-group"&gt;
  
              &lt;input type="hidden" name="save_action" value="Submit"&gt;
  
              &lt;div class="btn-group"&gt;
  
                  &lt;button type="submit" class="btn btn-success"&gt;
                      &lt;span class="fa fa-save"&gt;&lt;/span&gt; &amp;nbsp;
                      &lt;span data-value="Submit"&gt;Submit&lt;/span&gt;
                  &lt;/button&gt;
          &lt;/div&gt;
  
              &lt;a href="" class="btn btn-default"&gt;&lt;span class="fa fa-ban"&gt;&lt;/span&gt; &amp;nbsp;Cancel&lt;/a&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>This is the function that the form action is pointing to:</p>
  
  <pre><code> public function deletetimesheetProcess(TimesheetRequest $request)
  {
  
     DB::table('TIME')-&gt;where('Source', $request-&gt;get('TIMESHEETNUMBER'))-&gt;delete();
  
     \Alert::success(trans('yay'))-&gt;flash();
  
     return view('details/customershow',[]);
  
  }
  </code></pre>
  
  <p>Here are the defined routes for the two functions:</p>
  
  <pre><code> Route::get('/time/deletetimesheet', 'Admin\TimeCrudController@deletetimesheetLoad');
   Route::post('/time/deletetimesheet/process', 'Admin\TimeCrudController@deletetimesheetProcess');
  </code></pre>
  
  <p>Currently the blade template loads correctly, and does not throw an error on submit - just reloads the current page. What am I doing wrong?</p>