diff --git a/app/Http/Controllers/CRUDController.php b/app/Http/Controllers/CRUDController.php index 6c8d0ddf..02382c27 100644 --- a/app/Http/Controllers/CRUDController.php +++ b/app/Http/Controllers/CRUDController.php @@ -84,7 +84,7 @@ public function index(Request $request) $with = $this->with(); - return Inertia::render("CRUD/{$this->view}/Index", [ + return Inertia::render("Admin/CRUD/{$this->view}/Index", [ 'items' => $items, 'with' => $with, 'isSearchable' => $isSearchable, @@ -97,7 +97,7 @@ public function show($id) $with = $this->with(); - return Inertia::render("CRUD/$this->view/Show", [ + return Inertia::render("Admin/CRUD/$this->view/Show", [ 'item' => $item, 'with' => $with, ]); @@ -107,7 +107,7 @@ public function create() { $with = $this->with(); - return Inertia::render("CRUD/$this->view/Create", [ + return Inertia::render("Admin/CRUD/$this->view/Create", [ 'with' => $with, ]); } @@ -118,7 +118,7 @@ public function edit($id) $with = $this->with(); - return Inertia::render("CRUD/$this->view/Edit", [ + return Inertia::render("Admin/CRUD/$this->view/Edit", [ 'item' => $item->load($this->load), 'with' => $with, ]); diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php new file mode 100644 index 00000000..b8ce1b34 --- /dev/null +++ b/app/Http/Controllers/GalleryController.php @@ -0,0 +1,18 @@ +();
-
+
-
+