class
Illuminate
/
Database
/
Console
/
Migrations
/
FreshCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
FreshCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'migrate:fresh'
protected
$description string
The console command description.
Default: 'Drop all tables and re-run all migrations'
Methods
public
handle ( ) : int
Execute the console command.
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.