/
denispirit
/
rest-api
Обзор
Документация
Войти
/
denispirit
/
rest-api
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
app/Http/Requests/StoreCategoryRequest.php
28 строк
597 B
Денис Сергеевич Спиридонов
Initial commit
25 сен 2024, 10:02
25 сен 2024, 10:02
6be82dc
Код
Авторство
О чём код?
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreCategoryRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> */ public function rules(): array { return [ 'title'=> ['required', 'string', 'max:255'] ]; } }