I have undefined variable and it doesn't call variable.
I get missing argument 1 error when I try accessing a 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