Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 2.25 KB

console-scaffolding.md

File metadata and controls

56 lines (35 loc) · 2.25 KB

Scaffolding commands

Scaffolding commands

Use the scaffolding commands to speed up the development process.

Create a plugin

create:plugin - generates a plugin folder and basic files for the plugin. The parameter specifies the author and plugin name.

php artisan create:plugin Acme.Blog

Create a component

create:component - creates a new component class and the default component view. The first parameter specifies the author and plugin name. The second parameter specifies the component class name.

php artisan create:component Acme.Blog Post

Create a model

create:model - generates files needed for a new model. The first parameter specifies the author and plugin name. The second parameter specifies the model class name.

php artisan create:model Acme.Blog Post

Create a back-end controller

create:controller - generates a controller, configuration and view files. The first parameter specifies the author and plugin name. The second parameter specifies the controller class name.

php artisan create:controller Acme.Blog Posts

Create a form widget

create:formwidget - generates a back-end form widget, view and basic asset files. The first parameter specifies the author and plugin name. The second parameter specifies the form widget class name.

php artisan create:formwidget Acme.Blog CategorySelector

Create a console command

create:command - generates a new console command. The first parameter specifies the author and plugin name. The second parameter specifies the command name.

php artisan create:command RainLab.Blog MyCommand