applicant-site/app/Http/Requests/admin/Catalog/Direction/UpdatePlaceRequest.php

26 lines
701 B
PHP
Raw Normal View History

2024-02-19 18:55:44 +03:00
<?php
namespace App\Http\Requests\admin\Catalog\Direction;
use Illuminate\Foundation\Http\FormRequest;
class UpdatePlaceRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'position' => 'required|int|numeric|max:255',
'description' => 'string',
'amount' => 'required|int|numeric|max:255',
2024-02-28 15:03:46 +03:00
'quota' => 'required|int|numeric|max:255',
2024-02-19 18:55:44 +03:00
'education_form_id' => 'required|int|numeric|max:255',
'place_type_id' => 'required|int|numeric|max:255',
'direction_id' => 'required|int|numeric|max:255',
];
}
}