Файловый менеджер - Редактировать - /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Http/Requests/Admin/StoreStockLocationRequest.php
Назад
<?php namespace App\Http\Requests\Admin; use Gate; use Illuminate\Foundation\Http\FormRequest; class StoreStockLocationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Gate::allows('stock_location_create'); } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules() { return [ 'location' => [ 'required', 'unique:stock_locations', 'string', 'max:50', ], 'status' => [ 'required', 'in:0,1', ], ]; } public function messages() { return [ 'location.unique' => 'This location already exists.' ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка