I have my form view;
<form class="form-horizontal" role="form" method="GET" action="">
@foreach($input as $key => $value)
    @foreach($value as $subkey => $subvalue)                            
        {!! Form::hidden($key.'_'.$subkey, $subvalue) !!}
    @endforeach
@endforeach
{!! Form::hidden('postcode_id', $postcode_lookup['id']) !!}
<input class="btn btn-info"    type="submit" name="action" value="Map View"     />
<input class="btn btn-warning" type="submit" name="action" value="CSV Download" />
</form>
I have my Routes.php code;
if ( Input::get('action') === 'CSV Download' )
{
  Route::get('/export/csv', 'ExcelController@index');
}
if ( Input::get('action') === 'Map View' )
{
  Route::get('/map/all', 'MapController@index');
}
If the user clicks one button, I want them the ExcelController called. If it's the other, I want MapController called... Two different Controllers!
What should my action route be? At the moment it just stays on the current page when I click either.
 
     
    