You see, I have a User table with the following:
Schema::create('users', function (Blueprint $table){
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->integer('saldo');
$table->rememberToken();
$table->timestamps();
});
When I create the table I have prepared a user that will be introduced in the newly created table in DatabaseSeeder.php:
User::create([
'name' => 'Rigoberto Disousa',
'email' => '[email protected]',
'password' => '1234567',
'saldo' => 0,
]);
I create the table and try to login, but I see myself with this:
How do I fix it?
Edit: I have thus modified the user's value:
User::create([
'name' => 'Rigoberto Disousa',
'email' => '[email protected]',
'password' => bcrypt('1234567'),
'saldo' => 0,
]);
And when doing the migration it looks like this:
But the failure persists.
PS: I use for migration "php artisan migrate: refresh --seed".