{"repo":"spatie/laravel-queueable-action","free":true,"listed":false,"github":"https://github.com/spatie/laravel-queueable-action","clone":"git clone https://github.com/spatie/laravel-queueable-action.git","description":"Queueable actions in Laravel","language":"PHP","stars":703,"topics":["laravel","actions","queues"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Queueable actions in Laravel Actions are a way of structuring your business logic in Laravel. This package adds easy support to make them queueable. You can specify a queue name. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: You can optionally publish the config file with: This is the contents of the published config file: Usage If you want to know about the reasoning behind actions and their asynchronous usage, you should read the dedicated blog post: https://stitcher.io/blog/laravel-queueable-actions. You can use the following Artisan command to generate queueable and synchronous action classes on the fly. Here's an example of queueable actions in use: The package also supports actions using the invoke() method. This will be detected automatically. Here is an example: The actions using the invoke() method should be added to the queue the same way as explained in the examples above, by running the execute() method after the onQueue() method. Testing queued actions The package provides some test assertions in the Spatie\\QueueableAction\\Testing\\QueueableActionFake class. You can use them in a PhpUnit tes","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-queueable-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}