class Illuminate / Database / Console / Seeds / SeedCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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.