-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Scout with Laravel JSON:API? #449
Comments
Hi! Can you not just use the |
Closing due to lack of activity. |
👋 I'm looking to do the same thing. Scout provides fulltext indexing and has it's own builder so I don't think there is a way to use the adapter's /**
* Perform a search against the model's indexed data.
*
* @param string $query
* @param \Closure $callback
* @return \Laravel\Scout\Builder
*/
public static function search($query = '', $callback = null)
{
return app(Builder::class, [
'model' => new static,
'query' => $query,
'callback' => $callback,
'softDelete'=> static::usesSoftDelete() && config('scout.soft_delete', false),
]);
} |
@cdubz I've created an issue in the latest package for this, as I think I'll stand a better chance of getting it integrated in that package. This issue is linked above. |
Hi
Is there a way to integrate Scout with Laravel JSON:API?
The text was updated successfully, but these errors were encountered: