Is it safe to use the remember_token
in the users table for authenticating the user into the application?
What is the purpose of this token? Currently, I\'m
I had to add the remember_token
to my users table migration in order for Auth::logout()
to work properly.
Added remember_token
to my migrations as such.
increments('id');
$table->string('lname', 32);
$table->string('fname', 32);
$table->string('username', 32);
$table->string('email', 320);
$table->string('remember_token', 100);
$table->string('password', 64);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::drop('users');
}
}
From the command-line you the have to drop the users table, then migrate/seed.