spatie/laravel-dashboard
Build beautiful, Livewire-powered dashboards in Laravel. Provides base CSS, dashboard and tile view components, and a Tile model to persist fetched data so tiles can update themselves via polling.
Tile model persists fetched data, useful for caching or offline-capable dashboards.dashboard, tile). No issues if using Blade.Tile model), so a supported database (MySQL, PostgreSQL, etc.) is needed.Livewire\Testing).Tile model) be managed in multi-tenant or shared-hosting environments?composer require livewire/livewire).composer require spatie/laravel-dashboard.php artisan vendor:publish --tag=laravel-dashboard-assets.php artisan migrate (for Tile model).php artisan make:livewire StatsTile).Spatie\Dashboard\Tile for custom logic or use the Tile model for data persistence.use Spatie\Dashboard\Dashboard;
public function show()
{
return Dashboard::create()
->row(Dashboard::tile('stats-tile'))
->row(Dashboard::tile('recent-activity'))
->render();
}
resources/css/dashboard.css file.Tile model or use middleware to add auth/permissions.Route::get('/dashboard', [DashboardController::class, 'show'])).Tile model) for caching.Tile model migrations must be managed during updates.Tile model queries could impact performance if not optimized (e.g., eager loading, indexing).How can I help you explore Laravel packages today?