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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire