class
Illuminate
/
Database
/
Console
/
Migrations
/
RefreshCommand
RefreshCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'migrate:refresh'
protected
$description string
The console command description.
Default: 'Reset and re-run all migrations'
Methods
public
handle ( ) : int
Execute the console command.
protected
runRollback ( $database , $path , $step ) : void
Run the rollback command.
Parameters
- $database string
- $path string
- $step int
protected
runReset ( $database , $path ) : void
Run the reset command.
Parameters
- $database string
- $path string
protected
needsSeeding ( ) : bool
Determine if the developer has requested database seeding.
protected
runSeeder ( $database ) : void
Run the database seeder command.
Parameters
- $database string
protected
getOptions ( ) : array
Get the console command options.