Laravel Event And Listener | When and How to Use Event And Listener | Laravel 9 | Ajay Yadav

preview_player
Показать описание
In this video, We are going to discuss Laravel Event And Listener and When and How to Use Event And Listener, Events are the ways we hook into the activities of our application, it is just a way to observe an activity, for instance, login, a class can be created to monitor the activity of login, when a user logs in, the event class can execute some functions.
A Listener is a class that listens to the events that they are mapped to and execute a task, that is they are the ones that perform a given task for an event.

Real-Time Chat Application: (Without Puser)

Gates and Plicies video :

Admin And User Login :(Multi Auth - Guards )

Our Playlist:

Laravel User Management System :

Laravel Auth System :

Laravel And Vuejs

Laravel Eloquent Relationships

#LaravelEventAndListener #EventListener #Laravel9
Please subscribe to my channel and share the video with your friends.
Рекомендации по теме
Комментарии
Автор

The most incredible way you work and teach!
One of my best.
Keep it up Sir!

abdulgadgets
Автор

Explained good with real time debugging error 👍

khizer
Автор

You are explaining very well but why you are doing so fast it's irritating.

mazharulislam
Автор

sooo teacher, thanks <3, i will wait laravel and react sanctum crud with login

emotionally
Автор

Sir, you are requested to make a video of a Google socialite in that API section, so that the frontend can register it with a token.

RajaBabu-vmfn
Автор

your explanation was good but one doubt at last was make a command to run to send mails that in manual mode! is any other way to make it fast

akshayprathap
Автор

Nice explanation, I have a question: how we can use this model event when we are using DB façade? I mean when I use DB::insert or DB::update query builder methods how to use or trigger this event?

hafizimran
Автор

But why?
Ye kamm direct bhi to ho sacta tha jab post create kr di os k niche mail send krne ki job run kr k return redirect back ho jay

zainuleman.
Автор

Hi Ajay, Do we need to run queue:listen manually? as shown in video.
What can we do to run them automatically in production? cron jobs?

piyushkumardongre
Автор

Plz upgrade ur mouth speaker. No doubt ur video is awesome enough ✌️ but sound quality is too poor. 😢

asifuddin
Автор

Write all the commands below in the descriptions with sequence as well voice to text method also watching video and doing practise with you also needed

aistoredotcom
Автор

What is difference between bridge auth you have used and normal auth

zafeerahmad
Автор

Sir server pr queue job ko kese implement krenge I mean jo ap artisan command run kr rahe ho ye server pr chalani pdegi

durveshkumar
Автор

Please tell me, how can we handle when user is 3 lakhs or 4 lakhs.
Please reply.

shivesh
Автор

Sir your content is very good and explanation is good but you are too fast to understand

kevinkaneriya
Автор

End me sara kam kr k jo queue:listen ki command run ki hai us kam ko kya hum automate ni kr skty?

shahzaibanwar
Автор

Could you make video about polymorphic relationship how fetch data or insert or update.

SHADAN.__.KHAN
Автор

Hi

I have to know about every time we need to run queue job after saving jobs in queue or there is another way to run queue...

deepikarajput
Автор

Sir have any way to run job automatically.

mustafizurrahman
Автор

Bhai aapko Error nhi aaya ??
Error : " Expected response code "354" but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second". "
Mailtrap 2 mail allow krta hai per second, Aur Mai kra mujhe error aaya Fix bhi kiya..But aapka to hogya ????
I really like the way you teach, have recommended in my circle as well.. But a Request, don't trim videos Bro, Ek bar error dikha do fir trim kr Fix dikha do. Plz

If anyone facing error here, go like this :

public function handle(PostEvent $event)
{
$users = User::get();
foreach ($users as $user) {
sleep(1);
UserMail($event->post));
}
}

Pramodsharma-uzix