PHP Class Nwidart\Modules\Commands\MigrateRollbackCommand

Inheritance: extends Illuminate\Console\Command, use trait Nwidart\Modules\Traits\MigrationLoaderTrait
Show file Open project: nwidart/laravel-modules

Protected Properties

Property Type Description
$description string The console command description.
$module Nwidart\Modules\Repository
$name string The console command name.

Public Methods

Method Description
fire ( ) : mixed Execute the console command.
rollback ( $module ) Rollback migration from the specified module.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.

Method Details

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

rollback() public method

Rollback migration from the specified module.
public rollback ( $module )
$module

Property Details

$description protected property

The console command description.
protected string $description
return string

$module protected property

protected Repository,Nwidart\Modules $module
return Nwidart\Modules\Repository

$name protected property

The console command name.
protected string $name
return string