Tuesday, May 23, 2017

Laravel logout remember token error

This time I'm trying to do logout user... I'm pretty sur thaht my routing and controllers are good, but I don't know why I have error loke this ( ofcourse when I'm trying to logout ):

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'remember_token' in 'field list' 

This is my method in controller :

public function logout()
{

    Auth::logout();

    return redirect('/');

}

My logout is a link in view... What is wrong?



via wenus

Advertisement