jeudi 26 novembre 2015

How to create a user in seeder in Laravel - Password not working?

I am trying to create a seeder in laravel. So far I have the following:

User::create([
      'name' => 'John Smith'   
      'email' => 'john@example.com',
      'password' => 'letmein',
]);

However this does not seem to work when logging in as this user using laravel's authentication service. What am I doing wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire