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