PHP code example of nckrtl / horizon-new-dawn

1. Go to this page and download the library: Download nckrtl/horizon-new-dawn 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/ */

    

nckrtl / horizon-new-dawn example snippets


'bulk_operations' => [
    'connection' => 'redis',
    'queue' => 'horizon-maintenance',
],

use Illuminate\Support\Facades\Schedule;

Schedule::command('horizon:snapshot')->everyFiveMinutes();

return [
    'poll_interval' => 5000,
    'job_navigation_breakdown' => false,
    'job_payload_allowed_classes' => [],
    'bulk_operations' => [
        'connection' => null,
        'queue' => null,
    ],
];
bash
php artisan horizon-new-dawn:install
php artisan migrate
bash
php artisan horizon-new-dawn:assets
bash
php artisan optimize:clear
composer install --no-dev
php artisan migrate --force
php artisan config:cache
php artisan route:cache
bash
php artisan horizon-new-dawn:warm-batch-metadata
php artisan horizon-new-dawn:warm-retained-jobs
bash
php artisan horizon:terminate
php artisan octane:reload
bash
composer remove nckrtl/horizon-new-dawn
php artisan horizon:install
php artisan optimize:clear
bash
php artisan vendor:publish --tag=horizon-new-dawn-config