my blade looks like this...
@if(count($alleSpiele) > 0)
<ul class="list-group">
@foreach($alleSpiele as $alleSpieleOutput)
<a href='spielerAuswahl' class="list-group-item"></a>
@endforeach
</ul>
@endif
This is my route...
Route::get('/spielerAuswahl', 'SpielplanController@getHeimGast');
Here is my controller...
public function getHeimGast(){
return view('test');
}
Now, my problem is to take the choosen variable from a href heimmannschaft from blade to route into the controller? What is the correct way to do this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire