diff --git a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php index 42e10b9..5cb1e7c 100644 --- a/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php +++ b/app/Http/Requests/admin/Catalog/UpdateFacultyRequest.php @@ -15,9 +15,9 @@ class UpdateFacultyRequest extends FormRequest { return [ 'position' => 'required|int|numeric|max:255', - 'name' => ['required', 'string', 'max:255', "unique:faculties,name,{$this->faculty->id}",], + 'name' => ['required', 'string', 'max:255', "unique:faculties,name,{$this->faculty->id}"], 'description' => 'nullable|string', - 'slug' => ['required', 'string', 'max:255', "unique:faculties,slug,{$this->faculty->id}",], + 'slug' => ['required', 'string', 'max:255', "unique:faculties,slug,{$this->faculty->id}"], 'educational_institution_id' => 'required|int|numeric|max:1000', ]; } diff --git a/resources/views/admin/catalog/faculty/edit.blade.php b/resources/views/admin/catalog/faculty/edit.blade.php index 98553cb..7ca3b45 100644 --- a/resources/views/admin/catalog/faculty/edit.blade.php +++ b/resources/views/admin/catalog/faculty/edit.blade.php @@ -7,6 +7,7 @@