This is a package to monitor background jobs for FilamentPHP. It is inspired by Laravel Horizon and is compatible with all drivers.
You can install the package via composer:
composer require croustibat/filament-jobs-monitor
You can publish the config file with:
php artisan vendor:publish --tag="filament-jobs-monitor-config"
This is the content of the published config file:
return [
'navigation' => [
'enabled' => true,
'group_label' => 'Settings',
'icon' => 'heroicon-o-chip',
],
];
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-jobs-monitor-migrations"
php artisan migrate
Just run a Background Job and go to the route /admin/queue-monitors
to see the jobs.
Go to example folder to see a Job example file.
Then you can call your Job with the following code :
public static function table(Table $table): Table
{
return $table
// rest of your code
...
->bulkActions([
BulkAction::make('export-jobs')
->label('Background Export')
->icon('heroicon-o-cog')
->action(function (Collection $records) {
UsersCsvExportJob::dispatch($records, 'users.csv');
Notification::make()
->title('Export is ready')
->body('Your export is ready. You can download it from the exports page.')
->success()
->seconds(5)
->icon('heroicon-o-inbox-in')
->send();
})
])
}
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.