26 lines
701 B
PHP
26 lines
701 B
PHP
<?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',
|
|
'quota' => 'required|int|numeric|max:255',
|
|
'education_form_id' => 'required|int|numeric|max:255',
|
|
'place_type_id' => 'required|int|numeric|max:255',
|
|
'direction_id' => 'required|int|numeric|max:255',
|
|
];
|
|
}
|
|
}
|