These credentials do not match our records

0

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".

    
asked by Miguel Alparez 18.03.2018 в 18:22
source

0 answers