Events In Laravel | How To Use Events | Listeners In Laravel | How to add Newsletters
This video will learn you how to use events and listeners in Laravel. An event is basically a notification that something has taken place in your application. On the other hand, you also want to listen to your event, and that can be done with a listener.
Resources
- Patreon: https://www.patreon.com/user?u=30307830
- Instagram: https://www.instagram.com/codewithdary/
- Twitter: https://twitter.com/codewithdary
Get up to 1 Month Free Hosting by using code "DARY15" and get $15 free hosting credit.
https://www.cloudways.com/en/?id=918573
Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr.
Laravel 8 & TailwindCSS repo
https://github.com/codewithdary/laravel8-tailwindcss2
Coding Gear
- MacBook Pro: https://amzn.to/3qTMnGi
- Dell XPS: https://amzn.to/3Atp7Cm
- LG 34WN650-W: https://amzn.to/3G0XMbS
- Magic Trackpad 2: https://amzn.to/3Arp2ir
- Magic Mouse 2: https://amzn.to/346k5zC
- NAS: https://amzn.to/3rFf60U
- Sandisk SSD: https://amzn.to/3fNHcBB
- Rain Design Stand: https://amzn.to/3GTMeZ5
Recording Gear
- Rode NT-USB [Start]: https://amzn.to/3ApApXY
- Shure SM7B [Advanced]: https://amzn.to/3Arj5lv
- Rode PSA1: https://amzn.to/32pMCQ5
- Focusrite Scarlett 2i2: https://amzn.to/3FYZD0t
- XLR to XLR: https://amzn.to/3qVm2rC
Timestamps
0:00 Introduction
02:01 Sponsor of today’s video: Cloudways
02:38 Setting up the view, controller & route
07:47 Newsletter migration
09:34 Creating our Event & Listener
17:51 How to register the Event & Listener
▬▬▬
#cloudhosting #managedhosting #cloudways #laravel