Файловый менеджер - Редактировать - /home/clickysoft/public_html/app/Http/Requests/StoreAssetTagRequest.php
Назад
<?php namespace App\Http\Requests; use App\Models\AssetTag; use Gate; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Response; class StoreAssetTagRequest extends FormRequest { public function authorize() { return Gate::allows('asset_tag_create'); } public function rules() { return [ 'asset_id' => [ 'required', 'integer', 'exists:assets,id,organization_id,' . auth()->user()->organization_id, ], 'tag_name' => [ 'string', 'min:1', 'max:30', 'required', ], 'code' => [ 'string', 'min:1', 'max:15', 'required', ], 'serial' => [ 'string', 'min:1', 'max:30', 'required', ], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка