Roman_applicant-site/app/Http/Requests/UpdateReceptionScreenReques...

30 lines
642 B
PHP
Raw Normal View History

2024-01-19 10:48:00 +03:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
2024-01-23 11:20:15 +03:00
class UpdateReceptionScreenRequest extends FormRequest
2024-01-19 10:48:00 +03:00
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
2024-01-25 08:59:34 +03:00
return true;
2024-01-19 10:48:00 +03:00
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
2024-01-25 08:59:34 +03:00
'name' => 'required|max:255',
'position' => 'required||int|max:255',
2024-01-19 10:48:00 +03:00
];
}
}