lundi 23 mai 2016

How to fetch data database in input field name?

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">    



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/20swJv9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire