Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Http/Requests/Payment/SubscriptionRequest.php
Назад
<?php namespace App\Http\Requests\Payment; use Illuminate\Foundation\Http\FormRequest; class SubscriptionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string> */ public function rules(): array { return [ 'package_id' => [ 'required', ], 'holder_name' => [ 'string', 'required' ], // 'exp_date' => [ // 'date', // 'required', // 'after_or_equal:'.today(), // ], // 'cvv' => [ // 'integer', // 'required', // 'min:3' // ], // 'card_number' => [ // 'integer', // 'required', // 'min:16' // ], ]; } /** * Get the error messages for the defined validation rules. * * @return array */ public function messages() { return [ 'name.required' => ':attribute is required', 'name.alpha' => ':attribute must contain only alphabets', 'email.unique' => ':attribute already exists', 'email.email' => 'Please enter a valid :attribute', 'password.regex' => ':attribute must include an upper case and lower case char', 'password.min' => ':attribute should have at least 8 characters', 'phone_number.min' => ':attribute should have at least 6 characters', 'phone_number.max' => ':attribute should have at least 12 characters', ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes() { return [ 'card_number' => 'Card Number', 'cvv' => 'CVV Number', 'exp_date' => 'Card Expiry Date', 'holder_name' => 'Card Holder\'s Name', 'package_id' => 'Package', ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка