How to Integrate queue in laravel project easy steps?



Laravel is a powerful php framework to build Enterprise label Project. We are going to learn how to implement Laravel Queue in laravel. Queue backends such as Beanstalk, Amazon SQS, REDIS, for use queue.

First of all by default laravel has set queue sync  Means your queue will be run at the same time when you fire your queue event.

So first of all you have to change your setting in your .env file sync to database, sqs  and other, which service your are use just change to execute for perfectly.



If Changed for database your all of jobs file will be store in database in jobs table.

Then if your application running in production at server you have to install a package in your Linux system package name is Superviser.  Then you have to configure your superviser for your application then your superviser will watch your application and your queue will be work.

if your working for local and development server  only you have to run a command in application   command is php artisan queue:work --tried=3 

to this command your queue will tried three time.

No comments

Powered by Blogger.