!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/Modules/Category/Http/Requests/   drwxr-xr-x
Free 28.28 GB of 117.98 GB (23.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SubCategoryFormRequest.php (1.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Modules\Category\Http\Requests;

use 
Illuminate\Foundation\Http\FormRequest;
use 
Modules\Language\Entities\Language;

class 
SubCategoryFormRequest extends FormRequest
{
    protected 
$locales;

    public function 
__construct()
    {
        
parent::__construct();
        
$this->locales Language::orderBy('created_at''asc')->get();
    }

    public function 
rules()
    {
        
$rules = [
            
'category_id' => 'required',
        ];

        foreach (
$this->locales ?? [] as $locale) {
            
$rules["name.{$locale->code}"] = 'required|max:255';
        }

        return 
$rules;
    }

    public function 
messages()
    {
        
$messages = [
            
'category_id.required' => 'The category field is required.',
        ];

        foreach (
$this->locales as $locale) {
            
$messages["name.{$locale->code}.required"] = "The subcategory name is required for the language {$locale->name}.";
            
$messages["name.{$locale->code}.max"] = "The subcategory name for the language {$locale->name} must not exceed the maximum character limit of 255.";
        }

        return 
$messages;
    }

    public function 
authorize()
    {
        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]--