laravel / scout

Laravel Scout provides a driver based solution to searching your Eloquent models.
https://laravel.com/docs/scout
MIT License
1.55k stars 330 forks source link

Searchable trait not working outside of App namespace #871

Closed DonxDaniyar closed 1 week ago

DonxDaniyar commented 1 week ago

Scout Version

10.11.4

Scout Driver

Meilisearch

Laravel Version

10.48.22

PHP Version

8.1.5

Database Driver & Version

No response

SDK Version

No response

Meilisearch CLI Version

1.10.20

Description

Searchable trait on Modules namespace on nWidart/laravel-modules package's Modules namespave, for example Modules\Post\App\Modules\Post not working.

image

Steps To Reproduce

1)Install fresh Laravel 10 2) Install nwidart/laravel-modules 10.0.6 3) Create Module by command php artisan module:make 4) Create Model on module 5) Try to use Searchable trait and use this model

crynobone commented 1 week ago

Hey there,

While this may be a legitimate issue, can you first try posting your problem or question on one of the support channels below? If this issue can be definitively identified as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!