Spatie's Laravel Dashboard package.
Packaged version of the Spatie's Laravel Dashboard. The aim is to allow this handsome dashboard to be pulled into other projects, or customised heavily while keeping the core code isolated.
We will offer this repo to Spatie for them to maintain, so it may not exist for too long here.
With a new Laravel 5.5 app:
composer require konsulting/spatie-laravel-dashboard
php artisan make:auth
php artisan migrate
- Add a user: perhaps use
php artisan tinker
Spatie\\LaravelDashboard\\Providers\\DashboardServiceProvideris now auto-registered.
- Add the schedule to your console kernel. Add
(new \Spatie\LaravelDashboard\Console\DashboardSchedule($schedule))->handle();to the
- Add your pusher cluster settings to the
'pusher' => [ ... 'options' => [ 'cluster' => 'eu', 'secure' => true, ], ]
- If using google calendar, you need a service account - add the json file with credentials to
- Add the .env items you need from the
stubs/.env.examplefor the services you want to use.
php artisan vendor:publish --provider=Spatie\\LaravelDashboard\\Providers\\DashboardServiceProvider --tag=basic
- Start your queue listener and setup the Laravel scheduler.
- Open the dashboard in your browser, login and wait for the update events to fill the dashboard.
Simple customisations are possible through the config file (
config/dashboard.php) and the dashboard view (
If using any of these routes, you may need to explude them in your VerifyCsrfToken middleware.
protected $except = [ '/webhook/github', '/pusher/authenticate', '/oh-dear-webhooks', ];
You need to be comfortable with Vue and Laravel
php artisan vendor:publish --provider=Spatie\\LaravelDashboard\\Providers\\DashboardServiceProvider --tag=advanced
add babel.rc and all package.json reqt's (see the packages .babelrc and package.json)
npm run prodto build the necessary files.
You can override the schedule by using your own
Scheduleclass instead of
You can either add to the Dashboard Update command by listening for the
DashboardUpdatedevent, or by creating a new Command set in
This project and the Laravel framework are open-sourced software licensed under the MIT license.