Ejemplo n.º 1
0
 public function create($input)
 {
     $user = User::create($input);
     return $user;
 }
Ejemplo n.º 2
0
 public function getUserByColumnValue($column, $value)
 {
     $user = User::where($column, '=', $value)->first();
     return $user;
 }
Ejemplo n.º 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'])]);
 }