Laravel unexpected error “class user contains 3 abstract methods…”

前端 未结 8 570
野趣味
野趣味 2021-01-30 01:56

While programming my Authentication app on Laravel, I came across to an error I\'ve never seen before. I\'ve been brainstorming for almost an hour for the cause of this problem

8条回答
  •  一向
    一向 (楼主)
    2021-01-30 02:46

    Ah found it.

    Its apparently documented Laravel Update.

    You can check Laravel docs to fix your issues:

    "First, add a new, nullable remember_token of VARCHAR(100), TEXT, or equivalent to your users table.

    Next, if you are using the Eloquent authentication driver, update your User class with the following three methods:

    public function getRememberToken()
    {
        return $this->remember_token;
    }
    
    public function setRememberToken($value)
    {
        $this->remember_token = $value;
    }
    
    public function getRememberTokenName()
    {
        return 'remember_token';
    }
    

    "

    See http://laravel.com/docs/upgrade for further details.

提交回复
热议问题