Файловый менеджер - Редактировать - /home/clickysoft/public_html/app/Http/Requests/StoreAssetRequest.php
Назад
<?php namespace App\Http\Requests; use Gate; use Illuminate\Foundation\Http\FormRequest; class StoreAssetRequest extends FormRequest { public function authorize() { return Gate::allows('asset_create'); } public function rules() { return [ 'asset_name' => [ 'required', 'string', 'min:1', 'max:50', ], 'asset_status_id' => [ 'required', 'integer', 'exists:statuses,id,organization_id,' . auth()->user()->organization_id, ], 'category_id' => [ 'required', 'integer', 'exists:categories,id,organization_id,' . auth()->user()->organization_id, ], 'company_id' => [ 'required', 'integer', 'exists:companies,id,organization_id,' . auth()->user()->organization_id, ], 'branch_id' => [ 'required', 'integer', 'exists:branches,id,organization_id,' . auth()->user()->organization_id, ], 'manufacturer_id' => [ 'required', 'integer', 'exists:manufacturers,id,organization_id,' . auth()->user()->organization_id, ], 'supplier_id' => [ 'required', 'integer', 'exists:suppliers,id,organization_id,' . auth()->user()->organization_id, ], 'qty' => [ 'nullable', 'integer', ], 'purchase_cost' => [ 'nullable', 'numeric', ], 'currency_id' => [ 'nullable', 'integer', 'exists:currencies,id,organization_id,' . auth()->user()->organization_id, ], 'asset_expiration_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'next_audit_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'purchase_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'eol_date' => [ 'nullable', 'date_format:' . config('panel.date_format'), ], 'asset_image' => [ 'nullable', 'mimes:png,jpg,jpeg,gif', ], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка