2024-02-14 15:00:28 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests\admin\Catalog;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
class StoreEducationLevelRequest extends FormRequest
|
|
|
|
{
|
|
|
|
public function authorize(): bool
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'name' => 'required|string|max:255|unique:education_levels,name',
|
|
|
|
'description' => 'string',
|
2024-02-14 16:41:19 +03:00
|
|
|
'slug' => 'required|string|max:255',
|
2024-02-14 15:00:28 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|