applicant-site/app/Http/Requests/admin/Catalog/UpdateEducationFormRequest.php

23 lines
549 B
PHP
Raw Normal View History

2024-02-15 09:58:01 +03:00
<?php
namespace App\Http\Requests\admin\Catalog;
use Illuminate\Foundation\Http\FormRequest;
class UpdateEducationFormRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'name' => "required|string|max:255|unique:education_forms,name,{$this->education_form->id}",
'description' => 'string',
'slug' => "required|string|max:255|unique:education_forms,slug,{$this->education_form->id}",
2024-02-15 09:58:01 +03:00
];
}
}