This package for handling RabbitMQ messages in the Flagstudio Services
- add environment variables
###RABBITMQRABBITMQ_EXCHANGE_NAME=RABBITMQ_EXCHANGE_TYPE=fanoutRABBITMQ_QUEUE=RABBITMQ_HOST=RABBITMQ_PORT=5672RABBITMQ_USER=RABBITMQ_PASSWORD=RABBITMQ_VHOST=/RABBITMQ_DSN=amqp://- export config file
php artisan vendor:publish --provider="Flagstudio\RmqFlag\Providers\RmqFlagServiceProvider" --tag="config"- add class which implements
RmqMessageHandleExecutableinterface for handling message byactionvalue tormq-flag.ationsarray
# /config/rmq-flag.phpreturn [
#...'actions' => [
# for example'update_users' => \App\Actions\Users\FromAuthUpdateUserAction::class,
]
#...
];