From e397d4b46a30b854382f8e7dfa6156755b451a1e Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 13 Mar 2024 12:33:48 +0300 Subject: [PATCH] fix slug deparment --- app/Http/Controllers/admin/Catalog/DepartmentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/admin/Catalog/DepartmentController.php b/app/Http/Controllers/admin/Catalog/DepartmentController.php index cfd7276..8db3abf 100644 --- a/app/Http/Controllers/admin/Catalog/DepartmentController.php +++ b/app/Http/Controllers/admin/Catalog/DepartmentController.php @@ -40,7 +40,7 @@ class DepartmentController extends Controller $department->description = $validated['description']; $department->position = $validated['position']; $department->faculty_id = $validated['faculty_id']; - $department->slug = $validated['slug']; + $department->slug = $slug; $department->save(); Log::channel('app')