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

SeedCommand

Extends

Uses

Properties

protected

$name string

The console command name.

Default: 'db:seed'
protected

$description string

The console command description.

Default: 'Seed the database with records'
protected

$resolver ConnectionResolverInterface

The connection resolver instance.

Default: null

Methods

public

__construct ( ConnectionResolverInterface $resolver ) : void

Create a new database seed command instance.

Parameters

public

handle ( ) : int

Execute the console command.

protected

getSeeder ( ) : Seeder

Get a seeder instance from the container.

protected

getDatabase ( ) : string

Get the name of the database connection to use.

protected

getArguments ( ) : array

Get the console command arguments.

protected

getOptions ( ) : array

Get the console command options.