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();
}   



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire