@larajunior21 Does it work locally? (as you mentioned the problem arises when hosting).
Maybe you can run composer dumpautoload?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
why is it happening in my app?
when i use "laravel scout" i have problem "traits "laravel\scout\searchable" not found " but all configuration to use "laravel scout" i think i have done like add =
use Laravel\Scout\Searchable; use Searchable, public function toSearchableArray() { return [ 'name' => $this->name, 'desc' => $this->desc, ]; } on data models as well as adding SCOUT_DRIVER=database on ENV
this happened while i was hosting my app. please help
@larajunior21 Does it work locally? (as you mentioned the problem arises when hosting).
Maybe you can run composer dumpautoload?
Please or to participate in this conversation.