An admin dashboard for Laravel applications. It comes with a default bootstrap 5 template, but it's 100% customizable. You can use your own views and assets to either overwrite certain parts or use a completely different template.
Via composer
composer require davesweb/dashboardAfter that, publish the assets by running
php artisan vendor:publish --provider=Davesweb\Dashboard\Providers\ServiceProviderRun the migrations
php artisan migrateThe dashboard is now available, by default at yoursite.ext/dashboard. You can configure the
route in de dashboard.php config file.
Create the first user for your dashboard by running the artisan command.
php artisan dashboard:userFor local development, I recommend checking out the package with git and adding it as a path repository to your composer file instead of constantly pushing updates and updating composer.
- Go to root folder of the package
- Run
npm installandnpm run dev(orwatchorprod). - Go to the root folder of the project you're using this package in.
- Run
php artisan vendor:publish --provider=Davesweb\Dashboard\Providers\ServiceProvider --tag=public --force - The assets from the package are now available, use the asset helper for ease of use.
Instead of using CSS class names for the icons, use HtmlString objects so we aren't required to use an icon library that is used by specifying class names.- Add a check for cached routes to the crud route registration and add a command to cache the menu items of crud classes, so we don't need to instantiate every single crud class on every request.
Add a service class that handles how to render translations, based on the installed translation package so we can support other packages as well.- Vendor fonts (Font Awesome, Flag Icons) are not build to the correct folder, and therefore are not published with the rest of the assets.
- Export Crud overview to Excel, CSV
- Relationship columns in overviews
To run the testsuite, simply run
composer testThis package uses PHP CS Fixer to enforce code style. To run it, run
composer cs-fixerThis package is licensed under the MIT license, which basically means you can do whatever your want with this package. However, if you found this package useful, please consider buying me a beer or subscribing to premium email support over on Patreon, it's really appreciated!