PHP Class Efficiently\Larasset\Commands\CleanAssetsCommand

Inheritance: extends AssetsCommand
Datei anzeigen Open project: efficiently/larasset

Protected Properties

Property Type Description
$description string Add a 'larasset:clean' command to only removes old assets (keeps the most recent 3 copies) from public/assets. Useful when doing rolling deploys that may still be serving old assets while the new ones are being compiled.
$name string The console command name.

Public Methods

Method Description
__construct ( ) : void Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.

Method Details

__construct() public method

Create a new command instance.
public __construct ( ) : void
return void

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

Property Details

$description protected_oe property

Add a 'larasset:clean' command to only removes old assets (keeps the most recent 3 copies) from public/assets. Useful when doing rolling deploys that may still be serving old assets while the new ones are being compiled.
protected string $description
return string

$name protected_oe property

The console command name.
protected string $name
return string