Building Widgets

For widgets, start with php please make:widget examplewidgetname.

This will automagically set up the widget and create a base template file at resources/views/widgets/examplewidgetname.blade.php.


Widgets can be added to the dashboard by modifying the widgets array in the config/statamic/cp.php file.

// config/statamic/cp.php
'widgets' => [
'type' => 'examplewidgetname',
'width' => 100,
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →