public function run()
 {
     User::create(['username' => 'rleger', 'password' => 'secretecho*', 'role' => 'admin', 'email' => '*****@*****.**']);
     User::create(['username' => 'adnan', 'password' => 'secretecho*', 'email' => '*****@*****.**']);
 }
Пример #2
0
 /**
  * Create a new user instance after a valid registration.
  *
  * @param array $data
  *
  * @return User
  */
 public function create(array $data)
 {
     return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]);
 }