private function retrieveTestImage() { $imageRepository = new ImageRepository(); return $imageRepository->getById(1); }
/** * Respond with the edit image form * * @param $imageId * @return \Illuminate\Http\JsonResponse * @throws \Exception * @throws \Throwable */ public function edit($imageId) { $image = $this->imageRepository->getById($imageId); return $this->jsonResponse(['html' => ['form' => view('laramanager::images.edit', compact('image'))->render()]]); }