Run operations once after deployment - just like you do it with migrations!
README.md Update
Laravel 11.x Compatibility
A custom class layout can be provided in /stubs/one-time-operation.stub
Fixes typos
You can use the --isolated
option on operations:process
to run only one instance of the command.
Use operations:make --essential
to create a cleaner operation file without any attributes.
Provide a $tag
attribute in an OneTimeOperation class to filter operations when processing them.
You can now change the queue, that operations are being dispatched to.
$queue
attribute in an OneTimeOperation
class to change the queue, that the job will be dispatched to--queue
option with the artisan operations:process
command to force a specific queue for all operations
artisan operations:process --queue=redis
Moved factories into the intended directory
Changed the naming of this package because of what Taylor said 😉