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