2024-02-14 15:00:28 +03:00
|
|
|
<?php
|
|
|
|
|
2024-02-16 09:06:48 +03:00
|
|
|
namespace App\Http\Requests\admin\Catalog\Direction;
|
2024-02-14 15:00:28 +03:00
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
class UpdateEducationLevelRequest extends FormRequest
|
|
|
|
{
|
|
|
|
public function authorize(): bool
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'name' => "required|string|max:255|unique:education_levels,name,{$this->education_level->id}",
|
|
|
|
'description' => 'string',
|
2024-02-15 14:46:35 +03:00
|
|
|
'slug' => "required|string|max:255|unique:education_levels,slug,{$this->education_level->id}",
|
2024-02-14 15:00:28 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|