Пример #1
0
 public function run()
 {
     factory('Foobooks\\User', 50)->create();
     $user = \Foobooks\User::firstOrCreate(['email' => '*****@*****.**']);
     $user->name = 'Jill';
     $user->email = '*****@*****.**';
     $user->password = \Hash::make('helloworld');
     $user->save();
     $user = \Foobooks\User::firstOrCreate(['email' => '*****@*****.**']);
     $user->name = 'Jamal';
     $user->email = '*****@*****.**';
     $user->password = \Hash::make('helloworld');
     $user->save();
 }