Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public function searchTours($keyword) { $events = Event::whereHas('tags', function ($query) use($keyword) { $query->where('name', 'LIKE', '%' . $keyword . '%'); })->orWhere('title', 'LIKE', '%' . $keyword . '%')->orWhere('description', 'LIKE', '%' . $keyword . '%')->get(); return $events; }