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/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/app.machinox.in/app/Http/Requests/Admin/CmsRequest.php
<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class CmsRequest 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 [
            'code' => 'required|in:ABOUT_US,PRIVACY_POLICY,TERMS_CONDITIONS',
            'content' => 'required|string',
        ];
    }

    public function attributes()
{
    return [
        'code' => trans('messages.CODE'),
        'content' => trans('messages.CONTENT'),
    ];
}

public function messages()
{
    return [
        'code.required' => trans('messages.CODE_REQUIRED'),
        'code.in' => trans('messages.CODE_INVALID'),

        'content.required' => trans('messages.CONTENT_REQUIRED'),
        'content.string' => trans('messages.CONTENT_MUST_BE_STRING'),
        'content.max' => trans('messages.CONTENT_MAX_LENGTH'),
    ];
}
}

Youez - 2016 - github.com/yon3zu
LinuXploit