lundi 27 juin 2022

real time - browser

i have a problem, my search engine only searches with a particular Model

Model: 'Registro'

 public function search(Request $request){
        
        $results = Registro::where('cliente', 'LIKE', "%{$request->search}%")->get();
        
        return view('posts.results', compact('results'))->with(['search' => $request->search])->render();
        
    }

How can I make the search engine work with more Models?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/sXxq32k
via IFTTT

Aucun commentaire:

Enregistrer un commentaire