Route:
Route::get('listings','ListingsController@getListings');
ListingsController:
public function getListings(){
$shows = DB::table('listings')->where('id', '1')->first();
return view('listings.index',compact('shows'));
}
View:
<input type="text" id="searchbar" class="form-control" placeholder="Search for..." name="name">
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire