public function create($input)
 {
     $user = User::create($input);
     return $user;
 }
 public function getUserByColumnValue($column, $value)
 {
     $user = User::where($column, '=', $value)->first();
     return $user;
 }
示例#3
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'])]);
 }