Laravel redirect with logout not working Laravel redirect with logout not working laravel laravel

Laravel redirect with logout not working


You may be missing the remember_token for the users table.

see: http://laravel.com/docs/upgrade#upgrade-4.1.26

Laravel requires "nullable remember_token of VARCHAR(100), TEXT, or equivalent to your users table."

Update for new documentation

Laravel 4.2 and up now has a method you can use with your schema builder to add this column.

$table->rememberToken();

Laravel Docs - Schema - Adding Columns


If you have Laravel 4.2 you can do this:

Command Line:

php artisan migrate:make add_remember_token_to_users_table --table="users"

After this open the file app/database/migrations/2014_10_16_124421_add_remember_token_to_users_table and edit it like this:

public function up(){    Schema::table('users', function(Blueprint $table)    {        $table->rememberToken();    });}public function down(){    Schema::table('users', function(Blueprint $table)    {        $table->dropColumn('remember_token');    });}


for your problem ,you may pass null value or you may off your remember_token value in your model php file as

public $remember_token=false;