Exemplo n.º 1
0
 /**
  * Get conversation by UUID
  *
  * @param $uuid
  * @return \Illuminate\Http\JsonResponse
  */
 public function getConversation($uuid)
 {
     $conversation = $this->contactInfoRepo->getConversationByUuid($uuid);
     if (!$conversation) {
         return response()->json(['error' => 'Could not find conversation']);
     }
     return response()->json(['success' => $conversation]);
 }
Exemplo n.º 2
0
 /**
  * Display conversation view
  *
  * @param $uuid
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function getConversation($uuid)
 {
     $contactinfo = $this->contactInfoRepo->getConversationByUuid($uuid);
     if (!$contactinfo) {
         abort(404);
     }
     return view('front.conversation');
 }