vstruhar / filament-failed-jobs
The Laravel Filament plugin for managing failed jobs offers a streamlined interface to monitor, retry, and delete failed jobs directly from the admin panel.
Fund package maintenance!
vstruhar
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
The Laravel Filament plugin for managing failed jobs offers a streamlined interface to monitor, retry, and delete failed jobs directly from the admin panel.
Features
- Retry or delete all failed jobs
- Retry or delete single failed job
- Retry or delete selected failed jobs
- Retry or delete filtered failed jobs
- Can view details of the failed job with exception stack trace and models with ids
Installation
You can install the package via composer:
composer require vstruhar/filament-failed-jobs
You can publish the config file with:
php artisan vendor:publish --tag="filament-failed-jobs-config"
This is the contents of the published config file:
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, ], ];
Usage
Add FilamentFailedJobsPlugin
to plugins array in AdminPanelProvider.php
.
// AdminPanelProvider.php ->plugins([ // ... FilamentFailedJobsPlugin::make(), ])
Optionally you can chain enableNavigation
method and add logic when to enable navigation button in the main sidebar.
// AdminPanelProvider.php ->plugins([ // ... FilamentFailedJobsPlugin::make(), ->enableNavigation(fn() => auth()->user()->role === 'admin'), ])
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Vladimir Struhar
- Inspired by filament-jobs-monitor
License
The MIT License (MIT). Please see License File for more information.