PHP Class Nvd\Crud\Commands\Crud

Inheritance: extends Illuminate\Console\Command
显示文件 Open project: engrnvd/laravel-crud-generator

Public Properties

Property Type Description
$tableName

Protected Properties

Property Type Description
$description string The console command description.
$signature string The name and signature of the console command.

Public Methods

Method Description
__construct ( ) Create a new command instance.
controllerClassName ( )
controllersDir ( )
generateController ( )
generateModel ( )
generateRoute ( )
generateRouteModelBinding ( )
generateViews ( )
handle ( ) : mixed Execute the console command.
modelClassName ( )
modelVariableName ( )
modelsDir ( )
route ( )
templatesDir ( )
titlePlural ( )
titleSingular ( )
viewsDir ( )
viewsDirName ( )

Protected Methods

Method Description
confirmOverwrite ( $file )
getUpdatedContent ( $existingContent, $route )

Method Details

__construct() public method

Create a new command instance.
public __construct ( )

confirmOverwrite() protected method

protected confirmOverwrite ( $file )

controllerClassName() public method

public controllerClassName ( )

controllersDir() public method

public controllersDir ( )

generateController() public method

public generateController ( )

generateModel() public method

public generateModel ( )

generateRoute() public method

public generateRoute ( )

generateRouteModelBinding() public method

generateViews() public method

public generateViews ( )

getUpdatedContent() protected method

protected getUpdatedContent ( $existingContent, $route )

handle() public method

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

modelClassName() public method

public modelClassName ( )

modelVariableName() public method

public modelVariableName ( )

modelsDir() public method

public modelsDir ( )

route() public method

public route ( )

templatesDir() public method

public templatesDir ( )

titlePlural() public method

public titlePlural ( )

titleSingular() public method

public titleSingular ( )

viewsDir() public method

public viewsDir ( )

viewsDirName() public method

public viewsDirName ( )

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$signature protected_oe property

The name and signature of the console command.
protected string $signature
return string

$tableName public_oe property

public $tableName