class Illuminate / Database / Console / Migrations / FreshCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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.