nqxcode / laravel-lucene-search

Laravel 4.2, 5.* package for full-text search over Eloquent models based on ZF2 Lucene.
73 stars 28 forks source link

Can't apply laravel-lucene-search on User model #54

Closed MohamedHana closed 7 years ago

MohamedHana commented 7 years ago

My User model is extending Authenticatable and when I run php artisan search:rebuild --verbose it throws an error The class 'User' must be inherited from 'Illuminate\Database\Eloquent\Model'

How to make it run on the User model that extends Authenticatable?

This part throws the exception

       if (!is_subclass_of($className, $baseClass)) {
            throw new \InvalidArgumentException(
                "The class '{$className}' must be inherited from '{$baseClass}'."
            );
        }

When I comment it and try again it throws this error Class User does not exist