iutrace/laravel-dashboard
iutrace/laravel-dashboard is a Laravel package for adding a configurable dashboard to your application. Install it with Composer, publish its config, and arrange widgets into panels for a quick overview.
composer require iutrace/laravel-dashboard.php artisan vendor:publish --provider="Iutrace\Dashboard\DashboardServiceProvider" (check the README for exact tags; typically --tag=dashboard-config and --tag=dashboard-assets).php artisan migrate.php artisan make:dashboard MainDashboard (or manually extend the package’s base Dashboard class).tiles() method – start with one or two built-in tiles (e.g., a stat tile or chart tile) to confirm the wiring.config/dashboard.php for the route prefix and middleware)./dashboard (or your configured path) to see the tiles.Where to look first: config/dashboard.php (route, middleware, cache settings), the generated app/Dashboard/MainDashboard.php, and the package’s src/Tiles directory for available tile types. The 1.1.2 release updates Dashboard.php – review the diff on GitHub if you’ve extended or overridden that class.
First use case: Build a simple “team stats” dashboard with a stat tile showing user count and a line-chart tile showing signups over the last 30 days. Use a scheduled command to populate the tile data (see Implementation Patterns).
tiles() method returns an array of tile instances. Compose tiles by position and width (most dashboard packages use a grid system). Example:
public function tiles(): array
{
return [
UserCountTile::make()->width('1/3'),
SignupsChartTile::make()->width('2/3'),
];
}
FetchUserStats) and schedule it in app/Console/Kernel.php:
$schedule->command('dashboard:fetch-user-stats')->everyFiveMinutes();
The tile then reads cache('dashboard.user-count') or queries a dedicated table.php artisan cache:clear or a targeted tag) to see changes immediately.php artisan vendor:publish --tag=dashboard-assets --force) if the UI looks broken. Check the release notes – 1.1.2 only touches Dashboard.php, so asset changes are unlikely, but always verify.Dashboard.php: If your app subclasses or overrides methods in Dashboard.php, review the 1.1.2 diff (PR #3) before upgrading. A patch release can still change internal behaviour (e.g., method visibility or default property values) that affects subclasses./dashboard) may clash with existing routes. Change it in config/dashboard.php early.auth, can:view-dashboard) to the dashboard routes in config or in your route registration.view()->prependNamespace() or by publishing views. Check the package’s views directory for customizable Blade files. For custom behaviour, prefer extending base classes over editing vendor files.^1.1 in composer.json to receive bug fixes without accidental breaking changes.How can I help you explore Laravel packages today?