getById() public method

Get a user by user id.
public getById ( integer $id ) : Illuminate\Database\Eloquent\Model
$id integer
return Illuminate\Database\Eloquent\Model
Beispiel #1
0
 /**
  * Get a user by user id.
  *
  * @param int  $id
  * @return \stdclass
  */
 public function getById($id)
 {
     return $this->userRepo->getById($id);
 }