From 295d7a5711078161c2e56888e1dcfbf9bc77c547 Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 14 Feb 2024 14:08:28 +0300 Subject: [PATCH] fix update unique name --- app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php index e5ab5b3..6311ebd 100644 --- a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php +++ b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php @@ -22,7 +22,7 @@ class UpdateFacultyRequest extends FormRequest 'required', 'string', 'max:255', - "unique:educational_institutions,name,{$this->faculty->id}", + "unique:faculties,name,{$this->faculty->id}", ], ]; }