PHP code example of vstruhar / filament-failed-jobs

1. Go to this page and download the library: Download vstruhar/filament-failed-jobs 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/ */

    

vstruhar / filament-failed-jobs example snippets


return [
    'resources' => [
        'enabled' => true,
        'label' => 'Failed job',
        'plural_label' => 'Failed jobs',
        'navigation_group' => 'Settings',
        'navigation_icon' => 'heroicon-o-exclamation-triangle',
        'navigation_sort' => null,
        'navigation_count_badge' => false,
    ],
];

    // AdminPanelProvider.php
    ->plugins([
        // ...
        FilamentFailedJobsPlugin::make(),
    ])

    // AdminPanelProvider.php
    ->plugins([
        // ...
        FilamentFailedJobsPlugin::make(),
            ->enableNavigation(fn() => auth()->user()->role === 'admin'),
    ])
bash
php artisan vendor:publish --tag="filament-failed-jobs-config"