Advanced Laravel | Why and How Use Laravel Queue #15

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 153

  • @sohammittal4878
    @sohammittal4878 Год назад

    This video is still relevant after 5 years! Great explanation! Thank you :)

  • @disapamok_
    @disapamok_ 4 года назад

    If you want to run the queue without a terminal, Like in a shared server, Just use Artisan::call('queue:work').
    Thank you for the video brother.

    • @neerajsinghtangariya2587
      @neerajsinghtangariya2587 3 года назад

      where should I call this Artisan::call()..in controller where send method is called..?

  • @nasrulhamidipb8813
    @nasrulhamidipb8813 5 лет назад +5

    12:29 (for lumen 5.7.*) use QUEUE_CONNECTION instead of QUEUE_DRIVER

    • @ThanhBui-fo2gc
      @ThanhBui-fo2gc 5 лет назад

      Thank you!!

    • @abangjimmy
      @abangjimmy 4 года назад

      thanks you it works for me. i almost giving up watch this tutorial since my queue is not working.

    • @smartprem007
      @smartprem007 3 года назад

      Hi my job handle method does not call what I do

  • @keenbrain1536
    @keenbrain1536 5 лет назад +1

    Love the sincerity with which you teach these concepts. More laravel advanced topics please!

  • @souvikchatterjee3468
    @souvikchatterjee3468 3 года назад

    Thank you Sir, This video cleared all of my problems.

  • @PradeepKumar-hh7qt
    @PradeepKumar-hh7qt 3 года назад

    Thank you So much Sarthak you saved my Job;

  • @AshishPatel-xr2pb
    @AshishPatel-xr2pb 4 года назад +2

    Thank You so much sir for this awesome tutorial...
    I've implemented it in a very easy manner.
    But I faced an exception while working with uploading file & inserting data using Excel sheet even after providing the static path of the file (using queue the job is failing).
    Could you please help me on the same???
    The Exception is as follows:
    Box\Spout\Common\Exception\IOException: Could not open C:\xampp\htdocs\projectname\public\uploads/ for reading! (Could not open C:\xampp\htdocs\projectname\public\uploads/ for reading.) in C:\

  • @KwekuBright
    @KwekuBright 2 года назад

    I love this tutorial. Good job

  • @rahul_manek
    @rahul_manek 3 года назад

    a very clear explanation
    works perfectly on localhost
    but can you tell me how to run queue worker on live server
    I ran the command on SSH it works fine but how to keep it alive or start it when the job table has data in it?

  • @renancoelho5657
    @renancoelho5657 6 лет назад +1

    Thank you! Your explanation helped me a lot!

  • @nuruzzanamhimel5911
    @nuruzzanamhimel5911 2 года назад +1

    sir you r the boss... My financial position is not good. Otherwise i donate some amount

    • @Bitfumes
      @Bitfumes  2 года назад

      Its okay bro, please comment like and share my videos
      It is more than money for me
      Keep learning

  • @justinlemuel12
    @justinlemuel12 3 года назад

    Have you tried using "php artisan queue:listen" on a Windows Server? I don't know how to make it work.

  • @duylinhnguyentrong2162
    @duylinhnguyentrong2162 5 лет назад +1

    you solved my problem, Thank you so much

  • @valcmeza
    @valcmeza 4 года назад

    Thank you a bunch!!! Super helpful.

  • @santoshlimbuthebe
    @santoshlimbuthebe 6 лет назад

    Hi Bitfumes.. Thanks for the tutorials. I have a question? Can we use queue to display the view in laravel. I have queue worker doing job at background. The job is requesting XML webservice to get response .As soon as the job is done and I get the response in jobs handler. How can you trigger a some kind or route method and display the response in the view blade template?

  • @ilmanmanarulqori5632
    @ilmanmanarulqori5632 5 лет назад +1

    hallo sir, if i already on live server should i run command "php artisan queue:work" ? and let always run?

  • @YogeshPatel23
    @YogeshPatel23 4 года назад

    can use queue for http request
    i am user for loop to preform multiple http request and i dont for loop wait for responce
    plz help me

  • @michaelyara2975
    @michaelyara2975 6 лет назад

    Gracias amigo tu siempre super claro saludos desde colombia

    • @Bitfumes
      @Bitfumes  6 лет назад

      Gracias por mirar hermano, por favor, como Bitfumes en Facebook para obtener las últimas actualizaciones

  • @aliasgarvanak
    @aliasgarvanak 4 года назад

    How to run jobs automatically on server ? We can't run the command the server all the time. So, how we can do that in server ?

  • @moadoodahmad3712
    @moadoodahmad3712 5 лет назад +1

    very Good Tutorial Thanx

  • @lakshmanangunasekaran9306
    @lakshmanangunasekaran9306 4 года назад

    How to implement shouldqueue contract method using mail?? Any tutorial is available..it will more helpful for us..

  • @s1zz4r78
    @s1zz4r78 5 лет назад +1

    Perfect tutorial

  • @muhammadtouhid998
    @muhammadtouhid998 5 лет назад

    thanks a lot, nice and clean tut.

  • @kaushikshrimali5708
    @kaushikshrimali5708 6 лет назад

    Hello sir you chanel video's is too good

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.

  • @waleedmubarik3414
    @waleedmubarik3414 5 лет назад

    Nice Way of briefing

    • @Bitfumes
      @Bitfumes  5 лет назад

      thanks for watching, please check bitfumes.com/courses for more advanced courses

  • @cfpmx
    @cfpmx 6 лет назад

    Do you know how to configure a delay using Queued Event Listener? I see when you explained that using jobs, but right know I'm using Queued Event Listeners and I can't figure it out! Thank you!

  • @mareimorsy3182
    @mareimorsy3182 5 лет назад

    Thanks a lot. Best explanation ever !!! ^_^

  • @bala-st9cj
    @bala-st9cj 3 года назад

    Why laravel schedule not covered?

  • @agrikridanto1172
    @agrikridanto1172 6 лет назад +2

    thanks for tutorial, im bit confusing how to run queue:work on live server ?

  • @SamiMansour
    @SamiMansour 7 лет назад +2

    Thank you on this tutorial,
    actually i watch many videos about queue. but i didn't find an answer on my question.
    My question is, if i did this tutorial and upload it to online server like (digital ocean).... how to run queue without (php artisan queue:work) or in other meaning automatically?
    I hope to find an answer on this :)
    Best regards

    • @Bitfumes
      @Bitfumes  7 лет назад +1

      You have to run CRON JOB on server which actually run artisan command

    • @SamiMansour
      @SamiMansour 7 лет назад +1

      Bitfumes Webnologies mmmmmm thank you for speed reply and answer, appreciate your help

    • @chikevincent4908
      @chikevincent4908 6 лет назад

      @Bitfumes Please can you demonstrate how to run cron jon on live server?

    • @jonathancuellar5107
      @jonathancuellar5107 6 лет назад

      crontab ?

    • @detroitpistons9267
      @detroitpistons9267 6 лет назад +2

      laravel.com/docs/5.7/queues#supervisor-configuration

  • @mundix1
    @mundix1 4 года назад

    How i can make this jobs automaticly from a server ? with a cron job ? using some laravel url or using php artisan , is posible to make a job listener. wating for each db dispatch in diferente moment events ?

  • @vikifacts4875
    @vikifacts4875 7 лет назад

    How do you run the queue work when the site is already hosted on the server[production] ? Please show any methods we use in a real hosted project

    • @Bitfumes
      @Bitfumes  7 лет назад

      You have to do that with cron jobs.

    • @bloggervista
      @bloggervista 7 лет назад

      I guess that is for schedular . You can run daemon process for such things

  • @sapnapastapure3917
    @sapnapastapure3917 5 лет назад

    Hello, How we can set a dynamic mail configuration in laravel

  • @peternyirenda6100
    @peternyirenda6100 6 лет назад

    Thanks for the tutorial, but my question is there any way of executing artisan queue:work command without using command line? and how can i run CRON JOB in my local development

    • @Bitfumes
      @Bitfumes  6 лет назад

      Yes, check this out ruclips.net/video/r9HKfJFDEFE/видео.html
      you need to install a software called supervisor on your server for running these jobs

    • @CODINGISEASY
      @CODINGISEASY 5 лет назад

      Locally you can just use the sync queue driver which will process jobs straight away

  • @mrshailesh707
    @mrshailesh707 6 лет назад

    hey hi, how we can start cron job scheduler in laravel and send msg in every minutes

  • @kaushikshrimali5708
    @kaushikshrimali5708 6 лет назад

    but issue for this topic .
    When i created all configuration so its done
    but handle function does not call automatically

    • @Bitfumes
      @Bitfumes  6 лет назад

      What exact error you are getting

  • @vikifacts4875
    @vikifacts4875 7 лет назад

    Great video. Thanks

    • @Bitfumes
      @Bitfumes  7 лет назад +1

      Thanks for watching bro, please like Bitfumes on facebook to get latest updates

  • @smartprem007
    @smartprem007 3 года назад

    Hi my job handle method not call what I do

  • @YasirMalik24
    @YasirMalik24 6 лет назад

    Queue is not working on my server so what should i have to do now?
    is there any special PHP extension need to be installed on server ?

    • @CODINGISEASY
      @CODINGISEASY 5 лет назад

      YASIR Malik What queue driver are you using

  • @cfpmx
    @cfpmx 6 лет назад

    When QUEUE_DRIVER=sync everything is ok, but if QUEUE_DRIVER=database the worker fails when processing them. Any idea why? (I'm using Laravel 5.5)

    • @SajidLatifDK
      @SajidLatifDK 5 лет назад

      I have the same issue. Did you found the solution?

  • @amitdev1485
    @amitdev1485 6 лет назад

    how to do this in generating pdf since pdf generation takes much time

  • @subratamandal8076
    @subratamandal8076 4 года назад

    Do i have to run php artisan queue:work command after uploading the project on the server ?

    • @disapamok_
      @disapamok_ 4 года назад

      Yes. If you do not have terminal use Artisan::call('queue:work').

    • @bishalbhattarai9508
      @bishalbhattarai9508 4 года назад

      @@disapamok_ getting infinite loop or something problem any idea??

    • @disapamok_
      @disapamok_ 4 года назад

      @@bishalbhattarai9508 it couldn't be infinite loop. But request timeout

    • @bishalbhattarai9508
      @bishalbhattarai9508 4 года назад

      Why is so can you explain me

  • @developeravijit2157
    @developeravijit2157 5 лет назад

    thanks

    • @Bitfumes
      @Bitfumes  5 лет назад

      Thanks for watching bro, please visit bitfumes.com/courses for more advanced courses

  • @InsideElite
    @InsideElite 6 лет назад

    Thank you!

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching bro, please like Bitfumes on facebook to get latest updates

  • @shaikatbashar8457
    @shaikatbashar8457 5 лет назад

    Great........

    • @Bitfumes
      @Bitfumes  5 лет назад

      Thanks for watching bro, keep learning.
      Follow bitfumes on twitter.com/bitfumes and for full course checkout bitfumes.com

  • @mrshailesh707
    @mrshailesh707 6 лет назад

    how we can change default queue name??

  • @muhammedadil9784
    @muhammedadil9784 4 года назад

    how to run queue:work on production continuously .

  • @pramlogy
    @pramlogy 7 лет назад

    i tried github.com/nWidart/laravel-modules modules and all things were install successfully but after then when i command php artisan serve it shows me the default view welcome.blade.php which is located outside the modules . how to load views of modules ?
    thanks

  • @Travelmoments
    @Travelmoments 4 года назад

    You have explained clearly but it has still some confusion

  • @ciprianvvf9
    @ciprianvvf9 6 лет назад

    Thanks man

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching bro, please like Bitfumes on facebook to get latest updates.

  • @AtomCoder
    @AtomCoder 6 лет назад

    Good tutorial in explaining what it does. But it's not really much use to anyone unless it's automated on the server (live server). To me this is the most important part. Also using a cron job, defeats the purpose of using the 'delay sending' option within laravel as the sending would be determined by the cron job. The concept is good but as a laravel feature, it's poorly finished.

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks bro for your review, I will going to start laravel forge series where I will show how to setup queue worker on server.

    • @AtomCoder
      @AtomCoder 6 лет назад

      Good job, keep up the good work!

    • @yakubuyusuf9328
      @yakubuyusuf9328 6 лет назад

      I know is is old but the solution to this is using a Daemon like SupervisorD which runs the queue worker in the background. See more supervisord.org/

  • @tirits
    @tirits 3 года назад

    Thanks bitfume

  • @zkop1
    @zkop1 7 лет назад

    hello mr, can u suggest me how to study phpunit testing, i need ur advice master :), it is udemy or laracast is the best to study , it is worth to pay for the video ?, teach me senpai , thanks a lot.

    • @Bitfumes
      @Bitfumes  7 лет назад

      Yes you can learn not only that thing but also some new things and way they teach is also a lesson to learn.
      please like Bitfumes on facebook to get latest updates

  • @WebWizard24
    @WebWizard24 7 лет назад

    how to make the queue work in production mode??

    • @Bitfumes
      @Bitfumes  7 лет назад

      Yes, I will show that very soon. Thanks for watching , please like BItfumes on facebook to get latest updates.

    • @WebWizard24
      @WebWizard24 7 лет назад

      thanks,.i already liked😊

  • @aevie_tv1299
    @aevie_tv1299 6 лет назад

    Sir i have a one question

    • @aevie_tv1299
      @aevie_tv1299 6 лет назад

      Sir when i run command queue:work then send email but i want email send automatically after 10 second without this running command so what i can do please help me dear sir

    • @CODINGISEASY
      @CODINGISEASY 5 лет назад

      AeVie_Tv you can make a queued job that sends the mail instead of just sending the mail from a controller. Then add a delay to your queued job

  • @sergeyshevirev1642
    @sergeyshevirev1642 5 лет назад

    👍

  • @AregGhazaryan
    @AregGhazaryan 5 лет назад

    LEZ TAK BOUT LARAVL KYUUU

  • @fida
    @fida 6 лет назад

    wrong explanation of 'delay'

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for informing this, Please suggest correct way.

    • @fida
      @fida 6 лет назад

      re-watch from 10:30 , after dispatching the job it was still waiting to finish the job (send the email). then you were explaining like .. "we don't want to send it instantly ... we want to delay" ... thats why you added 5 sec ... but still failing! after a while you discovered that its not becoz of delay (you forgot to run queue:work/listen) .... but you finished the video without telling anything about the delay. don't you think it is explaining the purpose of delay wrongly?

  • @jaydevgodvaishnav9433
    @jaydevgodvaishnav9433 2 года назад

    Dear Sarthak
    Can you help me with one issue ?
    How to use Laravel with AWS SQS Queue ??
    I tried and configured AWS SQS details into laravel 8 but I am getting "MessageGroupID" require error which is needed but could not figured out where to configure into laravel.

  • @dedikurniawan8329
    @dedikurniawan8329 5 лет назад

    thanx

  • @amitsolanki9363
    @amitsolanki9363 10 месяцев назад

    How can i solve queue timeout problem in laravel when it will take around 10mintes to process

  • @info.vishalgohil
    @info.vishalgohil 6 лет назад +2

    Thank you brother, this video clear my confusion and I got good understanding of queue.

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching, please like Bitfumes on facebook to get latest updates.

  • @arunkumarvenkatadass5001
    @arunkumarvenkatadass5001 3 года назад +1

    Nanba vera level

  • @ashiqulhoque9937
    @ashiqulhoque9937 3 года назад

    loved it

  • @tarunkmr145
    @tarunkmr145 5 лет назад

    [Symfony\Component\Console\Exception\CommandNotFoundException]
    Command "make:mail" is not defined. what should i do ? i even install composer require guzzlehttp/guzzle

  • @raziburrahman8891
    @raziburrahman8891 3 года назад

    Make a video on "how to use queue on Shared hosting linux server (cpanel)".

  • @MarcelloPato
    @MarcelloPato 6 лет назад

    Amazing tutorial as usually!
    But, how can I pass data to the job, like a range of $users->email and $campain->body?
    I´m trying to receive like (Request $request), imported at the top obviously, the data it is not arraving, or passing

    • @MarcelloPato
      @MarcelloPato 6 лет назад +1

      Forget it. I figured out! \o/

  • @kinghh2677
    @kinghh2677 5 лет назад

    I love your tutorial and accent(LOL) But,Why this video don't have subtitle?

  • @yvansuen8789
    @yvansuen8789 4 года назад

    php artisan queue:work can't running

    • @Bitfumes
      @Bitfumes  4 года назад

      what you are getting while running command

    • @yvansuen8789
      @yvansuen8789 4 года назад

      Bitfumes Blank, nothing

    • @yvansuen8789
      @yvansuen8789 4 года назад

      Bitfumes I use laravel 6.*

  • @WebFranklinG
    @WebFranklinG 4 года назад

    Very good serie.
    I learned a lot from you.

  • @surajsahu4159
    @surajsahu4159 5 лет назад

    Please make a video in GoDaddy and share hosting

  • @KistlakRajapakshaSevenNet
    @KistlakRajapakshaSevenNet 5 лет назад

    100% Perfectly Worked !!
    Thank You Very Much Bro !! :D

  • @ogbuechiyoung
    @ogbuechiyoung 7 лет назад +2

    pls show how to do queue:work on live server

    • @Bitfumes
      @Bitfumes  7 лет назад

      okay sure.

    • @YasirMalik24
      @YasirMalik24 6 лет назад

      do you have video for queue:work on live server? link please

    • @rifqikhoerumanazam1535
      @rifqikhoerumanazam1535 6 лет назад

      use cronjob

    • @moadoodahmad3712
      @moadoodahmad3712 5 лет назад

      you can run throgh routes by calling artisan command route::get('/artisan', function(){ Artisan::call('queue:work') }
      )

    • @CODINGISEASY
      @CODINGISEASY 5 лет назад

      It’s easy if you use forge

  • @ghislainnkagou7150
    @ghislainnkagou7150 6 лет назад

    Bitfumes i try to add data in mailable to pass to view, i try it email can't send i use contructor in laravel documentation Mail View Data. if you can help me to do that or make video for this

    • @Bitfumes
      @Bitfumes  6 лет назад

      You can message me on facebook also

  • @slablife
    @slablife 5 лет назад

    Love your videos... sub'd!

  • @omerjan3118
    @omerjan3118 6 лет назад

    you saved my day thanks for this awesome tutorial

  • @DenniS-qr3nn
    @DenniS-qr3nn 6 лет назад

    great understanding of que and job.. thx for making this video

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching, please like BItfumes on facebook/twitter for latest updates.

  • @MZubairHaroon
    @MZubairHaroon 6 лет назад

    Great, but how do we set the subject of the email?
    Thanks

    • @Bitfumes
      @Bitfumes  6 лет назад

      You need to add another functino called subject and pass your subject on that like ->subject('This is subject')

  • @motive.2024
    @motive.2024 6 лет назад

    Awsome tutorial Bitfume. It is really helpful.

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching, please like Bitfumes on facebook/twitter for more updates.

  • @alfahidi7018
    @alfahidi7018 5 лет назад

    thank you for the effort.

  • @faridlu
    @faridlu 5 лет назад

    How to import header easily on vscode for laravel?

    • @Bitfumes
      @Bitfumes  5 лет назад

      install intelliphense extension on vscode

    • @faridlu
      @faridlu 5 лет назад

      There don't have such kind of Path Intellisense
      for laravel :/ Can you tell me the name of that Path Intellisense which work for laravel

  • @miha-gb2td
    @miha-gb2td 6 лет назад

    Thank you very much! Very helpful tutorial

    • @Bitfumes
      @Bitfumes  6 лет назад

      Thanks for watching, please like Bitfumes on facebook to get latest updates.

  • @sulaypanchal3648
    @sulaypanchal3648 6 лет назад

    Can i use ShouldQueue in my own class??

    • @Bitfumes
      @Bitfumes  6 лет назад

      Yes you can

    • @sulaypanchal3648
      @sulaypanchal3648 6 лет назад

      suppose i want to send 1000 users firebase notification with queue how can i do it i already created one class for firebase notification i just want some guidance how to use shouldQueue in my class sir please help thank you

  • @JethroTClampet
    @JethroTClampet 7 лет назад

    Excellent tutorial.

    • @Bitfumes
      @Bitfumes  7 лет назад

      Thanks for watching bro, Please like Bitfumes on facebook to get latest udpates. Keep learning