> */ public function rules(): array { return [ 'slug' => ['required', 'string', 'max:255', Rule::unique('categories', 'slug')->ignore($this->route('category'))], 'label' => ['required', 'string', 'max:255'], 'desc' => ['nullable', 'string'], 'image' => ['nullable', 'string', 'max:255'], 'meta_title' => ['nullable', 'string', 'max:255'], 'meta_description' => ['nullable', 'string'], ]; } /** * @return array */ public function messages(): array { return [ 'slug.required' => 'Slug alanı zorunludur.', 'slug.unique' => 'Bu slug zaten kullanılıyor.', 'label.required' => 'Kategori adı zorunludur.', ]; } }