Uname:Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64

Base Dir : /var/www/machinox.in

User : root


403WebShell
403Webshell
Server IP : 13.235.167.51  /  Your IP : 216.73.217.116
Web Server : Apache
System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64
User : root ( 0)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/app.machinox.in/app/Http/Requests/WebService/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/app.machinox.in/app/Http/Requests/WebService/SubscriptionRequest.php
<?php

namespace App\Http\Requests\WebService;

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<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'user_id' => 'required|exists:users,id',
            'subs_id' => 'required|exists:plans,id',
            'subs_price' => 'required|numeric',
            'disc_value' => 'nullable|numeric',
            'disc_percent' => 'nullable|numeric',
            'taxes' => 'nullable|numeric',
            'sub_total' => 'required|numeric',
            'grand_total' => 'required|numeric',
            'trx_id' => 'required|string',
            'trx_amount' => 'required|numeric',
            'trx_date_time' => 'nullable|date',
            'trx_pay_mode' => 'nullable|string',
            'trx_status' => 'nullable|string',
        ];
    }

    public function attributes()
    {
        return [
            'user_id'        => trans('messages.USER'),
            'subs_id'        => trans('messages.SUBSCRIPTION'),
            'subs_price'     => trans('messages.SUBSCRIPTION_PRICE'),
            'disc_value'     => trans('messages.DISCOUNT_VALUE'),
            'disc_percent'   => trans('messages.DISCOUNT_PERCENT'),
            'taxes'          => trans('messages.TAXES'),
            'sub_total'      => trans('messages.SUB_TOTAL'),
            'grand_total'    => trans('messages.GRAND_TOTAL'),
            'trx_id'         => trans('messages.TRANSACTION_ID'),
            'trx_amount'     => trans('messages.TRANSACTION_AMOUNT'),
            'trx_date_time'  => trans('messages.TRANSACTION_DATE'),
            'trx_pay_mode'   => trans('messages.TRANSACTION_MODE'),
            'trx_status'     => trans('messages.TRANSACTION_STATUS'),
        ];
    }

    public function messages()
    {
        return [
            'user_id.required'      => trans('messages.USER_REQUIRED'),
            'user_id.exists'        => trans('messages.USER_NOT_FOUND'),

            'subs_id.required'      => trans('messages.SUBSCRIPTION_REQUIRED'),
            'subs_id.exists'        => trans('messages.SUBSCRIPTION_NOT_FOUND'),

            'subs_price.required'   => trans('messages.SUBSCRIPTION_PRICE_REQUIRED'),
            'subs_price.numeric'    => trans('messages.SUBSCRIPTION_PRICE_NUMERIC'),

            'disc_value.numeric'    => trans('messages.DISCOUNT_VALUE_NUMERIC'),
            'disc_percent.numeric'  => trans('messages.DISCOUNT_PERCENT_NUMERIC'),

            'taxes.numeric'         => trans('messages.TAXES_NUMERIC'),

            'sub_total.required'    => trans('messages.SUB_TOTAL_REQUIRED'),
            'sub_total.numeric'     => trans('messages.SUB_TOTAL_NUMERIC'),

            'grand_total.required'  => trans('messages.GRAND_TOTAL_REQUIRED'),
            'grand_total.numeric'   => trans('messages.GRAND_TOTAL_NUMERIC'),

            'trx_id.required'       => trans('messages.TRANSACTION_ID_REQUIRED'),
            'trx_id.string'         => trans('messages.TRANSACTION_ID_STRING'),

            'trx_amount.required'   => trans('messages.TRANSACTION_AMOUNT_REQUIRED'),
            'trx_amount.numeric'    => trans('messages.TRANSACTION_AMOUNT_NUMERIC'),

            'trx_date_time.date'    => trans('messages.TRANSACTION_DATE_INVALID'),

            'trx_pay_mode.string'   => trans('messages.TRANSACTION_MODE_STRING'),

            'trx_status.string'     => trans('messages.TRANSACTION_STATUS_STRING'),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit