When i use
dd($name);
It show's "name" in browser http://ift.tt/2rM1Q9B
But when i send it into .twig view
'query' => request('name'),
on view display input data.
I'm using same command's, here code of controller:
public function search() {
$name = request('name');
dd('name');
$result = DB::table('drivers')
->where('name' , $name)
->get();
return view('driver_search', [
'_keywords' => $name ?: '',
'query' => request('name'),
'result' => $result,
]);
I need to send all matches with DB to view and then i will display it like
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire