PHP Class Encore\Admin\Commands\InstallCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: z-song/laravel-admin

Protected Properties

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

Public Methods

Method Description
createAdministratorController ( ) : void Create AdministratorController.
createAuthController ( ) : void Create AuthController.
createExampleController ( ) : void Create HomeController.
createHomeController ( ) : void Create HomeController.
fire ( ) : void Execute the console command.
publishDatabase ( ) : void Create tables and seed it.

Protected Methods

Method Description
copyLanguageFiles ( ) : void Copy language files to admin directory.
createMenuFile ( ) : void Create menu file.
createRoutesFile ( ) : void Create routes file.
getStub ( $name ) : string Get stub contents.
initAdminDirectory ( ) : void Initialize the admin directory.
makeDir ( string $path = '' ) Make new directory.

Method Details

copyLanguageFiles() protected method

Copy language files to admin directory.
protected copyLanguageFiles ( ) : void
return void

createAdministratorController() public method

Create AdministratorController.

createAuthController() public method

Create AuthController.
public createAuthController ( ) : void
return void

createExampleController() public method

Create HomeController.
public createExampleController ( ) : void
return void

createHomeController() public method

Create HomeController.
public createHomeController ( ) : void
return void

createMenuFile() protected method

Create menu file.
protected createMenuFile ( ) : void
return void

createRoutesFile() protected method

Create routes file.
protected createRoutesFile ( ) : void
return void

fire() public method

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

getStub() protected method

Get stub contents.
protected getStub ( $name ) : string
$name
return string

initAdminDirectory() protected method

Initialize the admin directory.
protected initAdminDirectory ( ) : void
return void

makeDir() protected method

Make new directory.
protected makeDir ( string $path = '' )
$path string

publishDatabase() public method

Create tables and seed it.
public publishDatabase ( ) : void
return void

Property Details

$description protected property

The console command description.
protected string $description
return string

$directory protected property

protected string $directory
return string

$name protected property

The console command name.
protected string $name
return string