Queue resource for Laravel Nova.
Supports only the database
queue driver.
Install package with Composer.
composer require den1n/nova-queues
Publish package resources.
php artisan vendor:publish --provider=Den1n\NovaQueues\ServiceProvider
This will publish the following resources:
- Configuration file
config/nova-queues.php
. - Translations
resources/lang/vendor/nova-queues
. - Views
resources/views/vendor/nova-queues
.
Create database queue table if it's not exists.
php artisan queue:table
Migrate database.
php artisan migrate
Add instance of class Den1n\NovaQueues\Tool
to your App\Providers\NovaServiceProvider::tools()
method to display the jobs within your Nova resources.
/**
* Get the tools that should be listed in the Nova sidebar.
*
* @return array
*/
public function tools()
{
return [
new \Den1n\NovaQueues\Tool,
];
}
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
. - Commit your changes:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin my-new-feature
. - Submit a pull request.
If you require any support open an issue on this repository.
MIT