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. What am I doing wrong?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Q1t4kZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire