PHP code example of vincentbean / horizon-extended-dashboard
1. Go to this page and download the library: Download vincentbean/horizon-extended-dashboard library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vincentbean / horizon-extended-dashboard example snippets
protected function schedule(Schedule $schedule)
{
$schedule->command('horizon:snapshot')->everyFifteenMinutes();
$schedule->command('horizon-dashboard:queue-snapshot')->everyFifteenMinutes();
}
protected function schedule(Schedule $schedule)
{
$schedule->command('horizon-dashboard:aggregate-queue-statistics --interval=60 --keep=240')->everyFifteenMinutes();
$schedule->command('horizon-dashboard:aggregate-job-statistics --interval=15 --keep=60')->everyFifteenMinutes();
}
protected function schedule(Schedule $schedule)
{
$schedule->command('horizon-dashboard:cleanup-statistics --hours=168')->daily();
$schedule->command('horizon-dashboard:cleanup-exceptions --hours=168')->everyFifteenMinutes();
}
shell
php artisan horizon-dashboard:publish
json
{
"scripts": {
"post-update-cmd": [
"@php artisan horizon-dashboard:publish"
]
}
}