Add full text search support to your models
- clone to
plugins/martin/tntsearch
- cd
plugins/martin/tntsearch
composer install
- add Searchable trait to your model
- build indexes
php artisan scout:import \\Author\\Plugin\\Models\\Post
// search on your posts
Post::search('My post title')->get();
// paginate posts query
Post::search('My post title')->paginate(25);