For widgets, start with 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',
[ // [tl! focus:start]
'type' => 'local_weather',
'width' => 100,
], // [tl! focus:end]
],