Down
class Down extends Command
Command that rolls back the last batch of migrations.
Traits
Properties
Methods
Resolves item from the container using overloading.
Writes n newlines to output.
Writes string to output.
Draws an alert.
Draws a progress bar and returns a progress bar instance.
Draws a table.
Draws an ordered list.
Draws an unordered list.
Writes question to output and returns boolesn value corresponding to the chosen value.
Writes question to output and returns user input.
Prints out a list of options and returns the array key of the chosen value.
Writes question to output and returns hidden user input.
Constructor.
Returns the command arguments.
Returns the default connection name of the application.
Returns the connection name for which we are running migrations.
Returns the fully qualified class name of a migration.
Returns migrations filtered by connection name.
[buildMigrationWrapper description].
Executes a migration method.
Executes the command.
Details
        in ContainerAwareTrait at         line 68
                            
    setContainer(Container $container)
        
    
    Sets the container instance.
        in ContainerAwareTrait at         line 79
                            mixed
    __get(string $key)
        
    
    Resolves item from the container using overloading.
        in CommandHelperTrait at         line 41
                    protected        
    nl(int $lines = 1, int $writer = Output::STANDARD)
        
    
    Writes n newlines to output.
        in CommandHelperTrait at         line 52
                    protected        
    write(string $string, int $writer = Output::STANDARD)
        
    
    Writes string to output.
        in CommandHelperTrait at         line 62
                    protected        
    error(string $string)
        
    
    Writes string to output using the error writer.
        in CommandHelperTrait at         line 70
                    protected        
    clear()
        
    
    Clears the screen.
        in CommandHelperTrait at         line 82
                    protected        
    alert(string $message, string $template = Alert::DEFAULT, int $writer = Output::STANDARD)
        
    
    Draws an alert.
        in CommandHelperTrait at         line 92
                    protected        
    bell(int $times = 1)
        
    
    Rings the terminal bell n times.
        in CommandHelperTrait at         line 102
                    protected        
    countdown(int $from = 5)
        
    
    Counts down from n.
        in CommandHelperTrait at         line 115
                    protected        ProgressBar
    progressBar(int $items, float $minTimeBetweenRedraw = 0.1, string|null $prefix = null)
        
    
    Draws a progress bar and returns a progress bar instance.
        in CommandHelperTrait at         line 142
                    protected        
    table(array $columnNames, array $rows, int $writer = Output::STANDARD)
        
    
    Draws a table.
        in CommandHelperTrait at         line 154
                    protected        
    ol(array $items, string $marker = '<yellow>%s</yellow>.', int $writer = Output::STANDARD)
        
    
    Draws an ordered list.
        in CommandHelperTrait at         line 166
                    protected        
    ul(array $items, string $marker = '<yellow>*</yellow>', int $writer = Output::STANDARD)
        
    
    Draws an unordered list.
        in CommandHelperTrait at         line 178
                    protected        bool
    confirm(string $question, string $default = 'n')
        
    
    Writes question to output and returns boolesn value corresponding to the chosen value.
        in CommandHelperTrait at         line 190
                    protected        mixed
    question(string $question, mixed $default = null)
        
    
    Writes question to output and returns user input.
        in CommandHelperTrait at         line 202
                    protected        int
    select(string $question, array $options)
        
    
    Prints out a list of options and returns the array key of the chosen value.
        in CommandHelperTrait at         line 215
                    protected        mixed
    secret(string $question, mixed $default = null, bool $fallback = false)
        
    
    Writes question to output and returns hidden user input.
        in Command at         line 73
                            
    __construct(Input $input, Output $output, Application $application, FileSystem $fileSystem, ConnectionManager $database, Container $container)
        
    
    Constructor.
        in Command at         line 74
                            string
    getDescription()
        
    
    Returns the command description.
        at         line 30
                            array
    getArguments()
        
    
    Returns the command arguments.
        in Command at         line 91
                    protected        string
    getDefaultConnectionName()
        
    
    Returns the default connection name of the application.
        in Command at         line 101
                    protected        string
    getConnectionName()
        
    
    Returns the connection name for which we are running migrations.
        in Command at         line 122
                    protected        string
    getBaseName(string $migration)
        
    
    Returns the basename of the migration.
        in Command at         line 132
                    protected        array
    findApplicationMigrations()
        
    
    Returns all application migrations.
        in Command at         line 149
                    protected        array
    findPackageMigrations()
        
    
    Returns all package migrations.
        in Command at         line 169
                    protected        array
    findMigrations()
        
    
    Finds all migrations.
        in Command at         line 180
                    protected        string
    getFullyQualifiedMigration(object $migration)
        
    
    Returns the fully qualified class name of a migration.
        in Command at         line 195
                    protected        array
    getMigrationsFilteredByConnection()
        
    
    Returns migrations filtered by connection name.
        in Command at         line 224
                    protected        ResultSet
    getMigrated(int|null $batches = null)
        
    
    Returns migrations that have been run.
        in Command at         line 241
                    protected        array
    getOutstanding()
        
    
    Returns an array of all outstanding migrations.
        in Command at         line 272
                    protected        
    outputMigrationList(array $migrations)
        
    
    Outputs a migration list.
        in Command at         line 313
                    protected        Closure
    buildMigrationWrapper(object $migration, Migration $migrationInstance, string $method, int|null $batch = null)
        
    
    [buildMigrationWrapper description].
        in Command at         line 339
                    protected        
    runMigration(object $migration, string $method, int|null $batch = null)
        
    
    Executes a migration method.
        in RollbackTrait at         line 22
                            
    rollback(int|null $batches = null)
        
    
    Rolls back n batches.
        at         line 44
                            
    execute(int $batches = 1)
        
    
    Executes the command.