File manager - Edit - /var/www/html/spdc/api/app/Http/Requests/WarningScaleRequest.php
Back
<?php namespace App\Http\Requests; use App\Rules\BooleanInput; use Illuminate\Foundation\Http\FormRequest; class WarningScaleRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules() { return [ 'finished' => ['prohibited'], 'month' => ['required'], 'year' => ['required'], 'department_id' => ['required', 'exists:departments,id'], 'calendar' => ['required', 'array'], 'calendar.*.user_id' => ['required'], 'calendar.*.day' => ['required'], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings