laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

Laravel 5.5. logout error #308

Closed Norgul closed 6 years ago

Norgul commented 6 years ago

I am having trouble logging out, and am getting the following error when running Auth::logout()

LaravelArdent \ Ardent \ InvalidModelException
No message

Here is my user model:

use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Auth\Authenticatable;

class User extends Ardent implements AuthenticatableContract
{
    use Authenticatable;
    ....
}
Norgul commented 6 years ago

Apparently, it was an Entrust issue. Error went away when I published the Entrust package and changed models in there to point to my custom directory