You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/app/Http/Requests/ServiceFileRequest.php

28 lines
542 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ServiceFileRequest extends FormRequest
{
/**
* @return array<array<string>>
*/
public function rules(): array
{
return [
'code' => ['required'],
'name' => ['required'],
'width' => ['required', 'numeric'],
'height' => ['required', 'numeric'],
'unit' => ['required'],
];
}
public function authorize(): bool
{
return true;
}
}