diff --git a/src/Http/Controllers/AdminController.php b/src/Http/Controllers/AdminController.php
index 42d43b5..a476dd5 100644
--- a/src/Http/Controllers/AdminController.php
+++ b/src/Http/Controllers/AdminController.php
@@ -32,14 +32,16 @@ public function edit(Place $place): View
public function store(FormRequest $request): RedirectResponse
{
- $model = Place::create($request->all());
+ $data = $request->except('file_ids');
+ $model = Place::create($data);
return $this->redirect($request, $model);
}
public function update(Place $place, FormRequest $request): RedirectResponse
{
- $place->update($request->all());
+ $data = $request->except('file_ids');
+ $place->update($data);
return $this->redirect($request, $place);
}
diff --git a/src/resources/views/admin/_form.blade.php b/src/resources/views/admin/_form.blade.php
index 0c8e36f..39ff7f3 100644
--- a/src/resources/views/admin/_form.blade.php
+++ b/src/resources/views/admin/_form.blade.php
@@ -11,7 +11,7 @@