PHP Class Nwidart\Modules\Commands\SeedCommand

Inheritance: extends Illuminate\Console\Command, use trait Nwidart\Modules\Traits\ModuleCommandTrait
Show file Open project: nwidart/laravel-modules

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
fire ( ) : mixed Execute the console command.
getModuleByName ( $name ) : Module
getModuleRepository ( ) : Repository
getSeederName ( string $name ) : string Get master database seeder name for the specified module.
moduleSeed ( Module $module ) : void

Protected Methods

Method Description
dbSeed ( string $className ) : array Seed the specified module.
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.

Method Details

dbSeed() protected method

Seed the specified module.
protected dbSeed ( string $className ) : array
$className string
return array

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

getModuleByName() public method

public getModuleByName ( $name ) : Module
$name
return Nwidart\Modules\Module

getModuleRepository() public method

public getModuleRepository ( ) : Repository
return Nwidart\Modules\Repository

getOptions() protected method

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

getSeederName() public method

Get master database seeder name for the specified module.
public getSeederName ( string $name ) : string
$name string
return string

moduleSeed() public method

public moduleSeed ( Module $module ) : void
$module Nwidart\Modules\Module
return void

Property Details

$description protected property

The console command description.
protected string $description
return string

$name protected property

The console command name.
protected string $name
return string