/
devron
/
ecomm-app
Обзор
Документация
Войти
/
devron
/
ecomm-app
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/Http/Requests/UpdateFormRequest.php
35 строк
667 B
Romulus
first init
17 апр 2024, 15:18
17 апр 2024, 15:18
6886bc2
Код
Авторство
О чём код?
<?php namespace App\Http\Requests; abstract class UpdateFormRequest extends FormRequest { protected string $table = ''; /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * @return array */ public function validationData(): array { return array_merge($this->request->all(), [ 'id' => $this->route()->parameter('id'), ]); } /** * Get the validation rules that apply to the request. * * @return array */ abstract public function rules(): array; }