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

Command

Extends

    Symfony\...\Command

Uses

Properties

protected

$laravel Application

The Laravel application instance.

Default: null
protected

$signature string

The name and signature of the console command.

Default: null
protected

$name string

The console command name.

Default: null
protected

$description string

The console command description.

Default: null
protected

$help string

The console command help text.

Default: null
protected

$hidden bool

Indicates whether the command should be shown in the Artisan command list.

Default: false

Methods

public

__construct ( ) : void

Create a new console command instance.

protected

configureUsingFluentDefinition ( ) : void

Configure the console command using a fluent definition.

public

run ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int

Run the console command.

Parameters

  • $input Symfony\...\InputInterface
  • $output Symfony\...\OutputInterface
protected

execute ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int

Execute the console command.

Parameters

  • $input Symfony\...\InputInterface
  • $output Symfony\...\OutputInterface
protected

resolveCommand ( $command ) : Symfony\...\Command

Resolve the console command instance for the given command.

Parameters

  • $command Symfony\...\Command|string
public

isHidden ( ) : bool

{@inheritdoc}

public

setHidden ( bool $hidden ) : static

{@inheritdoc}

public

getLaravel ( ) : Application

Get the Laravel application instance.

public

setLaravel ( $laravel ) : void

Set the Laravel application instance.

Parameters