1/ To create a widget, using below command:
php artisan cms:widget:create <widget name>
This widget will be created in /public/themes/<current active theme>/widgets/<widget name>
.
Then go to /admin/widgets
, you will see your widget.
{note} You can follow other widgets in default themes: Ripple and NewsTV to create widget.
2/ To remove a widget, using below command:
php artisan cms:widget:remove <widget name>
This widget will be removed.
A widget will have 3 files: This main class to init widget.
/public/themes/ripple/widgets/tags/tags.php
/public/themes/ripple/widgets/tags/templates/frontend.php
/public/themes/ripple/widgets/tags/templates/backend.php