I get missing argument 1 error when i try access page this is my code. Part of the view
@foreach($stations as $station)
<span> </span>
@endforeach
Controller
public function show($id)
{
$stations = DB::table('stations')->pluck('station');
return view('configuration.configuration', $stations);
}
route
Route::get('configuration/', 'ConfigurationController@show');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire