26 lines
679 B
PHP
26 lines
679 B
PHP
<?php namespace App\Http\Requests\Repuve;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class VehicleUpdateRequest extends FormRequest
|
|
{
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'folio' => ['required', 'string', 'max:50'],
|
|
'tag_id' => ['required', 'exists:tags,id'],
|
|
'files' => ['nullable', 'array', 'min:1'],
|
|
'files.*' => ['file', 'mimes:jpeg,png,jpg,pdf', 'max:10240'],
|
|
'names' => ['nullable', 'array'],
|
|
'names.*' => ['string', 'max:255'],
|
|
'replace_files' => ['nullable', 'boolean'],
|
|
];
|
|
}
|
|
}
|