PHP Class Laralib\L5scaffold\Commands\ScaffoldMakeCommand

Inheritance: extends Illuminate\Console\Command, use trait Illuminate\Console\AppNamespaceDetectorTrait, use trait Laralib\L5scaffold\Makes\MakerTrait
Mostrar archivo Open project: laralib/l5scaffold Class Usage Examples

Protected Properties

Property Type Description
$description string The console command description.
$meta array Meta information for the requested migration.
$name string The console command name!

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files ) : void Create a new command instance.
fire ( ) : void Execute the console command.
getMeta ( ) : array Get access to $meta array
getObjName ( string $config = 'Name' ) : mixed Generate names

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
makeMeta ( ) : void Generate the desired migration.
makeMigration ( ) : void Generate the desired migration.
makeModel ( ) : void Generate an Eloquent model, if the user wishes.

Private Methods

Method Description
makeController ( ) : void Make a Controller with default actions
makeLocalization ( ) Setup the localizations
makeSeed ( ) : void Generate a Seed
makeViewLayout ( ) : void Make a layout.blade.php with bootstrap
makeViews ( ) : void Setup views and assets

Method Details

__construct() public method

Create a new command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void
$files Illuminate\Filesystem\Filesystem
return void

fire() public method

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

getArguments() protected method

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

getMeta() public method

Get access to $meta array
public getMeta ( ) : array
return array

getObjName() public method

Generate names
public getObjName ( string $config = 'Name' ) : mixed
$config string
return mixed

getOptions() protected method

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

makeMeta() protected method

Generate the desired migration.
protected makeMeta ( ) : void
return void

makeMigration() protected method

Generate the desired migration.
protected makeMigration ( ) : void
return void

makeModel() protected method

Generate an Eloquent model, if the user wishes.
protected makeModel ( ) : void
return void

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$meta protected_oe property

Meta information for the requested migration.
protected array $meta
return array

$name protected_oe property

The console command name!
protected string $name
return string