!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/Migrations/   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:     RollbackCommand.php (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Database\Console\Migrations;

use 
Illuminate\Console\ConfirmableTrait;
use 
Illuminate\Database\Migrations\Migrator;
use 
Symfony\Component\Console\Input\InputOption;

class 
RollbackCommand extends BaseCommand
{
    use 
ConfirmableTrait;

    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'migrate:rollback';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Rollback the last database migration';

    
/**
     * The migrator instance.
     *
     * @var \Illuminate\Database\Migrations\Migrator
     */
    
protected $migrator;

    
/**
     * Create a new migration rollback command instance.
     *
     * @param  \Illuminate\Database\Migrations\Migrator  $migrator
     * @return void
     */
    
public function __construct(Migrator $migrator)
    {
        
parent::__construct();

        
$this->migrator $migrator;
    }

    
/**
     * Execute the console command.
     *
     * @return int
     */
    
public function handle()
    {
        if (! 
$this->confirmToProceed()) {
            return 
1;
        }

        
$this->migrator->usingConnection($this->option('database'), function () {
            
$this->migrator->setOutput($this->output)->rollback(
                
$this->getMigrationPaths(), [
                    
'pretend' => $this->option('pretend'),
                    
'step' => (int) $this->option('step'),
                ]
            );
        });

        return 
0;
    }

    
/**
     * Get the console command options.
     *
     * @return array
     */
    
protected function getOptions()
    {
        return [
            [
'database'nullInputOption::VALUE_OPTIONAL'The database connection to use'],

            [
'force'nullInputOption::VALUE_NONE'Force the operation to run when in production'],

            [
'path'nullInputOption::VALUE_OPTIONAL InputOption::VALUE_IS_ARRAY'The path(s) to the migrations files to be executed'],

            [
'realpath'nullInputOption::VALUE_NONE'Indicate any provided migration file paths are pre-resolved absolute paths'],

            [
'pretend'nullInputOption::VALUE_NONE'Dump the SQL queries that would be run'],

            [
'step'nullInputOption::VALUE_OPTIONAL'The number of migrations to be reverted'],
        ];
    }
}

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