lundi 1 janvier 2018

How to search by starting word in laravel eloquent

I want to search from database by the first letter.

public function search_item(Request $request){
    $search_item = $request->search;

    $wheels = Wheel::where('wheel_name', 'like' , $search_item."%")->get();
}   



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

Aucun commentaire:

Enregistrer un commentaire