Пример #1
0
 /**
  * updatesProfile method accepts user details from the request and checks if user exist in database. 
  * If user exist then sends back success notification.
  * else returns error notification.
  * 
  * @param $request
  * @return Notification
  */
 public function updateProfile(Request $request)
 {
     $userCtrl = new UserController();
     return $userCtrl->updateUser($request);
 }
Пример #2
0
 /**
  * User registration is handled by this system by just passing the call to UserController
  * @param Request
  */
 public function index(Request $request)
 {
     $userCtrl = new UserController();
     return $userCtrl->addUser($request);
 }