Beispiel #1
0
 public function createUserJobReference(UserService $user, $user_id, $job_id)
 {
     $retrieve = ['name', 'mobile_number', 'email', 'title'];
     try {
         $input = Request::only($retrieve);
         $response = $user->createUserJobReference($job_id, $input);
         if (!empty($response)) {
             return $this->json_response->success($response);
         }
         return $this->json_response->error($response);
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }