Файловый менеджер - Редактировать - /home/clickysoft/public_html/app/Http/Requests/StoreMaintenanceScheduleRequest.php
Назад
<?php namespace App\Http\Requests; use Gate; use Illuminate\Foundation\Http\FormRequest; class StoreMaintenanceScheduleRequest extends FormRequest { public function authorize() { return Gate::allows('maintenance_schedule_create'); } public function rules() { return [ 'asset_id' => [ 'required', 'integer', 'exists:assets,id,organization_id,' . auth()->user()->organization_id, ], 'maintenance_type' => [ 'required', 'integer', 'in:1,2,3', ], 'scheduled_date' => [ 'required', 'date_format:' . config('panel.date_format'), ], 'completion_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'status' => [ 'required', 'integer', 'in:1,2,3', ], 'frequency' => [ 'required', 'integer', 'in:1,2,3,4,5,6', ], 'interval' => [ 'nullable', 'integer', ], 'cost' => [ 'required', 'number', ], 'assigned_to' => [ 'required', 'integer', 'exists:users,id,organization_id,' . auth()->user()->organization_id, ], 'next_scheduled_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'notes' => [ 'nullable', 'max:2048', ], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка