Building Widgets
Generating a widget
You can generate a widget with a console command:
php please make:widget LocalWeather
This will automagically set up the widget and create a base template file at resources/views/widgets/local_weather.blade.php
.
Configuring
Widgets can be added to the dashboard by modifying the widgets
array in the config/statamic/cp.php
file.
// config/statamic/cp.php
'widgets' => [
'getting_started',
[ 'type' => 'local_weather',
'width' => 100,
], ],
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page