user(); $patients = $user->patients()->with(['type'])->get(); return $this->response()->success($patients); } public function show($id) { $user = auth('api')->user(); $patient = $user->patients()->with(['type'])->findOrFail($id); return $this->response()->success($patient); } }