uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
foodbank.codeskitter.site
/
fa8fd
/
..
/
app
/
Http
/
Requests
/
WithdrawRequest.php
/
/
<?php namespace App\Http\Requests; use App\Models\User; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class WithdrawRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'user_id' => ['required', 'numeric'], 'amount' => ['required', 'digits_between: 1,10'], 'payment_type' => ['required', 'numeric'], ]; } public function withValidator($validator) { return $validator->after(function ($validator) { $this->checkBalanceAmount($validator); }); } public function checkBalanceAmount($validator) { $user = User::find(request('user_id')); if (!blank($user)) { $balanceAmount = $user->balance->balance; if ($balanceAmount < request('amount')) { $validator->errors()->add('amount', 'The amount can not greater than to balance amount ' . $balanceAmount); } } } public function attributes() { return [ 'user_id' => trans('validation.attributes.user_id'), 'amount' => trans('validation.attributes.amount'), 'payment_type' => trans('validation.attributes.payment_type'), ]; } }
/home/users/unlimited/www/foodbank.codeskitter.site/fa8fd/../app/Http/Requests/WithdrawRequest.php