diff --git a/app/Http/Requests/admin/Catalog/Direction/UpdateDirectionProfileRequest.php b/app/Http/Requests/admin/Catalog/Direction/UpdateDirectionProfileRequest.php index b82413f..13b58dd 100644 --- a/app/Http/Requests/admin/Catalog/Direction/UpdateDirectionProfileRequest.php +++ b/app/Http/Requests/admin/Catalog/Direction/UpdateDirectionProfileRequest.php @@ -14,9 +14,19 @@ class UpdateDirectionProfileRequest extends FormRequest public function rules(): array { return [ - 'name' => ['required', 'string', 'max:255', "unique:direction_profiles,name,{$this->direction_profile->id}",], + 'name' => [ + 'required', + 'string', + 'max:255', + "unique:direction_profiles,name,{$this->direction_profile->id}" + ], 'description' => 'nullable|string', - 'slug' => ['required', 'string', 'max:255', "unique:direction_profiles,slug,{$this->direction_profile->id}",], + 'slug' => [ + 'required', + 'string', + 'max:255', + "unique:direction_profiles,slug,{$this->direction_profile->id}" + ], 'position' => 'required|int|numeric|max:255', ]; } diff --git a/resources/views/admin/catalog/direction/direction_profile/create.blade.php b/resources/views/admin/catalog/direction/direction_profile/create.blade.php index c7e124c..ae5b44d 100644 --- a/resources/views/admin/catalog/direction/direction_profile/create.blade.php +++ b/resources/views/admin/catalog/direction/direction_profile/create.blade.php @@ -12,12 +12,12 @@ *