Canvas: Use laravel scout in Post model

Created on 17 Mar 2020  路  2Comments  路  Source: austintoddj/canvas

I'm trying to implement full-text search to the eloquent model. I can do that on custom models. But I want to use Searchable trait in canvas Post.php, so that I can use full-text search. Any idea about this implementation?

question

All 2 comments

I haven't tried this before, but what if you extended the \Canvas\Post class and added the Searchable trait to that new model?

@austintoddj I didn't think about that. That worked. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kavierkoo picture kavierkoo  路  5Comments

prestontoor picture prestontoor  路  4Comments

lunadiotic picture lunadiotic  路  7Comments

hide-me picture hide-me  路  5Comments

reliq picture reliq  路  4Comments