teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 144 forks source link

get without one id #217

Closed vahidalvandi closed 5 years ago

vahidalvandi commented 5 years ago

how i can serach in all whit out same id

$data['relateds'] = model::search($data['article']->title)->where('site_posts.id','!=','55')->take(8)->get();

this return empty !

nticaric commented 5 years ago

Try without the where clause and then simply exclude the post from the collection

vahidalvandi commented 5 years ago

please show sample