Edit on GitHub

Scaffolding Commands

Scaffolding commands

Use the scaffolding commands to speed up the development process.

Create a Theme

The create:theme command generates a theme folder and basic files for the theme. The parameter specifies the theme code.

php artisan create:theme myauthor-mytheme

Create a Plugin

The create:plugin command 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

The create:component command 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

The create:model command generates the 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 Settings Model

The create:settings command generates the files needed for a new Settings model. The first parameter specifies the author and plugin name. The second parameter is optional and specifies the Settings model class name (defaults to Settings).

php artisan create:settings Acme.Blog CustomSettings

Create a backend Controller

The create:controller command 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 FormWidget

The create:formwidget command generates a backend 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 ReportWidget

The create:reportwidget command generates a backend report widget, view and basic asset files. The first parameter specifies the author and plugin name. The second parameter specifies the report widget class name.

php artisan create:reportwidget Acme.Blog TopPosts

Create a console Command

The create:command 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 Winter.Blog MyCommand

Keep informed

Sign up to our newsletter to receive updates on Winter CMS releases, new features in the works, and much more.
We'll never spam or give this address away.

Latest blog post

The Winter CMS Web Installer is now available!

Published June 17, 2021
We are super excited to announce that our new Web-based Installer is finally available for download, to make it super easy to get your next Winter CMS project started!

View this post Read all posts

Latest Winter CMS release

v1.1.6

Released August 25, 2021
1 Bug Fix

View details View all releases