| Install | |
|---|---|
composer require filaforge/filament-hello-widget |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.1 |
A simple and elegant Filament plugin that adds a customizable hello widget to your admin panel dashboard.
composer require filaforge/hello-widget
# Publish provider groups (config, views, migrations)
php artisan vendor:publish --provider="Filaforge\\HelloWidget\\Providers\\HelloWidgetServiceProvider"
# Run migrations
php artisan migrate
Add the plugin to your Filament panel provider:
use Filament\Panel;
public function panel(Panel $panel): Panel
{
return $panel
// ... other configuration
->plugin(\Filaforge\HelloWidget\HelloWidgetPlugin::make());
}
The plugin will automatically:
config/hello-widget.phpresources/views/vendor/hello-widget/database/migrations/Configure the hello widget in the published config file:
// config/hello-widget.php
return [
'greeting' => 'Hello',
'show_user_info' => true,
'show_timestamp' => true,
'custom_message' => 'Welcome to your dashboard!',
'widget_position' => 'top',
'refresh_interval' => 0, // 0 = no auto-refresh
'allowed_roles' => [], // Empty = all authenticated users
];
Add these to your .env file if needed:
HELLO_WIDGET_GREETING=Hello
HELLO_WIDGET_CUSTOM_MESSAGE=Welcome to your dashboard!
HELLO_WIDGET_SHOW_USER_INFO=true
php artisan config:show hello-widget
php artisan route:list | grep hello-widget
php artisan tinker
# Check widget registration
php artisan optimize:clear
php artisan view:clear
tail -f storage/logs/laravel.log
If you need to customize the widget appearance:
php artisan vendor:publish --tag=hello-widget-views
Edit the published views in resources/views/vendor/hello-widget/
Customize the CSS in resources/css/hello-widget.css
Remove the plugin from your panel provider:
// remove ->plugin(\Filaforge\HelloWidget\HelloWidgetPlugin::make())
php artisan migrate:rollback
# or roll back specific published files if needed
rm -f config/hello-widget.php
rm -rf resources/views/vendor/hello-widget
composer remove filaforge/hello-widget
php artisan optimize:clear
Remove these from your .env file:
HELLO_WIDGET_GREETING=Hello
HELLO_WIDGET_CUSTOM_MESSAGE=Welcome to your dashboard!
HELLO_WIDGET_SHOW_USER_INFO=true
We welcome contributions! Please see our Contributing Guide for details.
This plugin is open-sourced software licensed under the MIT license.
Made with ❤️ by the Filaforge Team