/
ximain1
/
tpu-backend
Обзор
Документация
Войти
/
ximain1
/
tpu-backend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
app/Http/Requests/ShoulderRequest.php
30 строк
670 B
kokos46
Реализация формирования и скачивания таблицы с маршрутным листом (без даты и смены)
29 дек 2025, 04:49
29 дек 2025, 04:49
dace01d
Код
Авторство
О чём код?
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ShoulderRequest 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 [ 'station1' => 'required|string', 'station2' => 'required|string', 'distance' => 'required|float', ]; } }