Тёмный

Events In Laravel | How To Use Events | Listeners In Laravel | How to add Newsletters 

Code With Dary
Подписаться 62 тыс.
Просмотров 33 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 86   
@codewithdary
@codewithdary 2 года назад
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@LEXUANPHAT
@LEXUANPHAT Год назад
Hi, I'm Vietnamese, I'm starting to self-study Laravel and I found your RU-vid. I found your instructions very detailed, thank you for the lesson is very useful. Because I'm not good at English, I used google translate to support. If the wording is not appropriate, please forgive.
@codewithdary
@codewithdary Год назад
Hi Le Xuan, self-study is the best ;)
@alnahian2003
@alnahian2003 2 года назад
It was super exciting to see how the event and listener works in laravel. I was kinda overwhelmed while reading the docs, but now the basics of events & listener is clear to me! WohHoo! Thanks Dary
@codewithdary
@codewithdary 2 года назад
Love to hear that, thank you Al Nahian!
@abdulrafay1509
@abdulrafay1509 2 года назад
Nice vid bro! No one, literally no one, not a single soul! Backend devs: That's a pretty nice looking form field even though it's coming from me! :D
@codewithdary
@codewithdary 2 года назад
Hahahahahaa!
@GoTechAcademy
@GoTechAcademy 2 года назад
I like watching your tutorials. you are so intelligent.
@codewithdary
@codewithdary 2 года назад
You are too man! :) Thank you.
@muaf8374
@muaf8374 2 года назад
Yeah I like this kind of content. Educational and simple
@codewithdary
@codewithdary 2 года назад
Thank you so much :)
@emmanuelboniface2660
@emmanuelboniface2660 Год назад
thank you Code with Dary, this your video was helpful
@codewithdary
@codewithdary Год назад
Love to help Emmanuel!
@vooDOO6625
@vooDOO6625 2 года назад
Very clear exlanation. Nice
@codewithdary
@codewithdary 2 года назад
Thank you Reuben!
@yakhyomus
@yakhyomus 2 года назад
Thank you!
@codewithdary
@codewithdary 2 года назад
You're welcome!
@abdallakaram5376
@abdallakaram5376 2 года назад
amazing Dary
@codewithdary
@codewithdary 2 года назад
Thank you Abdalla! :)
@TrikNgonlen
@TrikNgonlen 3 года назад
Damn! It's awesome tutorial...I love it...thank you so much... 🙏
@codewithdary
@codewithdary 3 года назад
Thank you for watching! :)
@user-gf3hf5ri8b
@user-gf3hf5ri8b 2 года назад
GREAT VIDEO! thank you so much Code With Dary.
@codewithdary
@codewithdary 2 года назад
You're so welcome!
@GergelyCsermely
@GergelyCsermely 3 года назад
Thanks
@codewithdary
@codewithdary 3 года назад
Welcome!!
@Rasheedadedamola
@Rasheedadedamola 3 года назад
Thank. keep it coming!!
@codewithdary
@codewithdary 3 года назад
Will do Rasheed!
@TheWaqaspuri
@TheWaqaspuri 3 месяца назад
so lovely
@fancyAlex1993
@fancyAlex1993 Год назад
The documentation really needs work with Observers, Events and Listeners
@codewithdary
@codewithdary Год назад
Definitely agree with you, especially because those topics are quite difficult as well.
@ugochukwuekwueme575
@ugochukwuekwueme575 2 года назад
What of saving the data using controller class, and then using Laravel notification on the listener class? Make sense?
@MrSonicastra
@MrSonicastra 3 года назад
Nice never heard about these terms, nice to see im gonna add this to my blog website also thanks to one of your video's! Thanks for sharing, Dary. 👌
@codewithdary
@codewithdary 3 года назад
My pleasure Angelino! Thanks for joining Patreon :)
@asim-gandu-phenchod
@asim-gandu-phenchod 2 года назад
Amazing content. Hats of to you Dary
@codewithdary
@codewithdary 2 года назад
Thank you buddy!
@ifeanyinnaemego
@ifeanyinnaemego Год назад
How can I attached their details like name in the sent email
@codewithdary
@codewithdary Год назад
Through the user object!
@abdulsalamghadeer6023
@abdulsalamghadeer6023 2 года назад
Can i use event to send notifications like user follow another user but not in email is there another way to make notification appear on user profile view؟
@sithumdasantha3147
@sithumdasantha3147 3 года назад
Keep it up Bro ❤
@codewithdary
@codewithdary 3 года назад
Thank you, I will bro!!
@nicolegeorge8659
@nicolegeorge8659 2 года назад
This is a nice video bro , in my opinion using events and listeners is more of a long process …. There are shorter ways to do it with the controller and optimize time ! What do you think? Nice video btw ✅
3 года назад
Thanks for the tutorial. It's very clear! My only question is when should we trigger the e-mail sending through the event instead of doing it directly within the controller?
@codewithdary
@codewithdary 3 года назад
You should add it inside the handle() method of your Listener!
@bewellegoist
@bewellegoist 2 года назад
I guess, it is better to send an email via event because this kind of task may require some time to process. I mean, saving data to DB via listener - is kinda weird, there is a repository for that, but handling logs and email seems appropriate
@carlosf.2927
@carlosf.2927 2 года назад
is that observer design pattern, basically?
@vuviy1711
@vuviy1711 2 года назад
great content!!!
@codewithdary
@codewithdary 2 года назад
Thank you so much! :)
@writingbig
@writingbig 2 года назад
Dary, you mentioned (15:10) that you won't use Eloquent inside the handle() of the listener. Is there a reason why you preferred DB query over there?
@timshen5250
@timshen5250 Год назад
Is "event" async call like queue?
@timothybeldeniza2548
@timothybeldeniza2548 3 года назад
Hi, How can we pass more info into the Event. Like we want to show in the received email, the Name of Person, email address etc who has subscribed.
@codewithdary
@codewithdary 3 года назад
You should be passing them in the constructor, and when you call the Event from your Controller, you should be passing the variables as parameters :)
@timothybeldeniza2548
@timothybeldeniza2548 2 года назад
@@codewithdary Thank you so much !
@timothybeldeniza2548
@timothybeldeniza2548 2 года назад
Good day Dary, may i ask, how can i use Queues here in your Event and Listener, where do i put the dispatch method, in listener class? Thanks
@Ramziddin_Rustamovv
@Ramziddin_Rustamovv 2 года назад
Hi , bro i have questions aut of topic . Can you make a video which is about working as a frelancer . As a laravel developer , i am student at the international education programme . In the field of computer science ... It would be better , i will wait .👍👍🙂
@codewithdary
@codewithdary 2 года назад
That sounds like a interesting video :)
@broouklynco.tutorials5606
@broouklynco.tutorials5606 2 года назад
hey, love your vscode look, can you share your extensions and configuration? Thank you in advance!
@codewithdary
@codewithdary 2 года назад
Hi, here's a video where I setup VS code: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KAUxgUvC514.html And I use Material Theme (I think palenight) for my theme :)
@hernanmartinezreumann3279
@hernanmartinezreumann3279 3 года назад
Thanks Dary! Great video!! What other kind of things should be managed by Events & Listeners? It is like they do the job of the Controllers.
@codewithdary
@codewithdary 3 года назад
Think about emailing a user when they subscribe to your newsletter of when they buy a product. You can fire an event to send them either the confirmation or just a thank you message. Or even a better example: send a discount code to customers that buy products in let's say 5 days from the purchase!
@hernanmartinezreumann3279
@hernanmartinezreumann3279 3 года назад
@@codewithdary Thanks for your response!!
@piyushkumardongre5873
@piyushkumardongre5873 3 года назад
@@codewithdary Hi, How can we pass more info into the Event. Like we want to show in the received email, the Name of Person, email address etc who has subscribed.
@jseh_
@jseh_ 3 года назад
very clear
@codewithdary
@codewithdary 3 года назад
Glad to hear that
@Ramziddin_Rustamovv
@Ramziddin_Rustamovv 2 года назад
🤝👍
@codewithdary
@codewithdary 2 года назад
👌🏽
@owfprem1754
@owfprem1754 3 года назад
Very clear explanation, awesome ! Just one question, why store the data thru the event instead of controller ?
@paweliszka44
@paweliszka44 2 года назад
Same question here, as far as i understand "event" is sth that was done in past an is stored in som kind of DB
@peterpardo4138
@peterpardo4138 3 года назад
amazing
@codewithdary
@codewithdary 3 года назад
Thanks 😄
@lijinv674
@lijinv674 3 года назад
Nice bro
@codewithdary
@codewithdary 3 года назад
Thanks!!
@augischadiegils.5109
@augischadiegils.5109 Год назад
nicee
@codewithdary
@codewithdary Год назад
Thanks Augis!!
@geoffrey6420
@geoffrey6420 2 года назад
Good work. What extension are you using for laravel in visual studio code?
@codewithdary
@codewithdary 2 года назад
Thank you. I recently created a video where I setup VSCode: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KAUxgUvC514.html&t
@geoffrey6420
@geoffrey6420 2 года назад
@@codewithdary Thanks. I shall watch it.
@fraazwas5915
@fraazwas5915 3 года назад
✨✨✨✨
@codewithdary
@codewithdary 3 года назад
:)
@shailu016hai6
@shailu016hai6 3 года назад
💃
@codewithdary
@codewithdary 3 года назад
👌
@vrj93
@vrj93 2 года назад
Not working
@codewithdary
@codewithdary 2 года назад
It should be :)
@vrj93
@vrj93 2 года назад
@@codewithdary I forgot to include path in Eventserviceprovider. Working now. Thanks...
@cesarperalta4959
@cesarperalta4959 2 года назад
Jesus.... half of the tutorial was non event related
@codewithdary
@codewithdary 2 года назад
Am I the only one seeing timestamps in the video? :)
Далее
Get started with Laravel events and listeners
15:37
Просмотров 19 тыс.
▼ЮТУБ ВСЁ, Я НА ЗАВОД 🚧⛔
30:49
Просмотров 503 тыс.
09 - Events & Listeners
11:01
Просмотров 22 тыс.
Laravel Mail Basics 2024 | Send emails with Laravel
9:31
When RESTful architecture isn't enough...
21:02
Просмотров 275 тыс.
Become a PRO at Using Components in Laravel
32:51
Просмотров 37 тыс.
▼ЮТУБ ВСЁ, Я НА ЗАВОД 🚧⛔
30:49
Просмотров 503 тыс.