Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/app/Http/Requests/StoreChatRequest.php
Назад
<?php namespace App\Http\Requests; use App\Rules\UserExistsInGroup; use Gate; use Illuminate\Foundation\Http\FormRequest; class StoreChatRequest extends FormRequest { public function authorize() { return Gate::allows('chat_create'); } public function rules() { return [ 'group_id' => [ 'nullable', 'integer', 'exists:groups,id', new UserExistsInGroup() ], 'parent_id' => [ 'nullable', 'integer', 'exists:chats,id' ], 'to_id' => [ 'required_without:group_id', 'integer', 'exists:users,id' ], 'message' => [ 'nullable', 'max:2048', ], 'attachments' => [ 'array', ], 'attachments.*' => [ 'mimetypes:image/jpeg,image/gif,image/png,application/pdf', 'max:5120' ], 'timeline_id' => [ 'nullable', 'integer', 'exists:timelines,id' ], 'outline_id' => [ 'nullable', 'integer', 'exists:outlines,id' ], 'plot_planner_id' => [ 'nullable', 'integer', 'exists:plot_planners,id' ], 'brainstorm_id' => [ 'nullable', 'integer', 'exists:brainstorms,id' ], 'book_id' => [ 'nullable', 'integer', 'exists:books,id' ], 'series_id' => [ 'nullable', 'integer', 'exists:seriess,id' ], 'contact_id' => [ 'nullable', 'integer', ], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка