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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StoreMessageRequest 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()
    {
        return [
            'ad_id' => 'required|exists:advertisements,id',
            'type'=> 'required|in:TEXT,FILE',
            'message' => 'required_if:type,TEXT|max:20480',
            'file' => 'required_if:type,FILE|max:20480',
        ];
    }

    public function attributes()
    {
        return [
            'ad_id' => trans('messages.AD_ID'),
            'message' => trans('messages.MESSAGE'),
        ];
    }

    public function messages(): array
    {
        return [
            'ad_id.required' => trans('messages.AD_ID_REQUIRED'),
            'ad_id.exists' => trans('messages.AD_ID_EXISTS'),
            'message.max' => trans('messages.MESSAGE_MAX'),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit