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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire