PHP code example of jeffersongoncalves / filament-queue-management

1. Go to this page and download the library: Download jeffersongoncalves/filament-queue-management 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/ */

    

jeffersongoncalves / filament-queue-management example snippets


use Filament\Panel;
use JeffersonGoncalves\Filament\QueueManagement\FilamentQueueManagementPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentQueueManagementPlugin::make()
                ->navigationGroup('Queue Management')   // null => translated default label
                ->navigationSort(99)
                ->jobsSlug('jobs')
                ->failedJobsSlug('failed-jobs')
                ->jobBatchesSlug('job-batches')
                ->jobsNavigationIcon('heroicon-o-queue-list')
                ->failedJobsNavigationIcon('heroicon-o-exclamation-triangle')
                ->jobBatchesNavigationIcon('heroicon-o-rectangle-stack'),
        ]);
}

return [
    'navigation' => [
        'group' => null, // null => translated "Queue Management"
        'sort' => null,
    ],
    'resources' => [
        'jobs' => [
            'slug' => 'jobs',
            'navigation_icon' => 'heroicon-o-queue-list',
        ],
        'failed_jobs' => [
            'slug' => 'failed-jobs',
            'navigation_icon' => 'heroicon-o-exclamation-triangle',
        ],
        'job_batches' => [
            'slug' => 'job-batches',
            'navigation_icon' => 'heroicon-o-rectangle-stack',
        ],
    ],
];
bash
php artisan vendor:publish --tag="filament-queue-management-config"