yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

Don't try to index classes that don't use Searchable #33

Closed c4l3b closed 7 years ago

c4l3b commented 7 years ago

The check for the Searchable trait is too far into the loop. This causes problems if the directory being searched contains classes that are not Eloquent models.