Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Http/Requests/Landlord/UpdateUnitRequest.php
Назад
<?php namespace App\Http\Requests\Landlord; use App\Models\Unit; use Gate; use Illuminate\Foundation\Http\FormRequest; class UpdateUnitRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return Gate::allows('unit_edit'); } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> */ public function rules() { return [ 'amenities.*' => [ 'integer', ], 'amenities' => [ 'array', ], 'number' => [ 'string', 'required', ], 'lease_term' => [ 'required', ], 'rent_due_date' => [ 'required', 'date_format:' . config('panel.date_format'), ], 'monthly_rent' => [ 'required', ], 'security_deposit' => [ 'required', ], 'size' => [ 'numeric', ], // 'description' => [ // 'string', // 'nullable', // ], 'no_of_bedrooms' => [ 'required', 'integer', 'min:-2147483648', 'max:2147483647', ], 'no_of_bathroom' => [ 'required', 'integer', 'min:-2147483648', 'max:2147483647', ], 'available_date' => [ 'date_format:' . config('panel.date_format'), 'nullable', ] ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка