loading...

Learn How to Use Laravel Model Events

mahedih13542828 profile image Mahedi Hasan ・1 min read

Do you know we can fire specific event from model without passing data from controller ? In this tutorial i am going to show you how we can do it without passing data from controller.

Suppose, let think when new user is created then we will fire a event. For doing this we can pass newly created user from controller, but now we can do it without passing data. Let's try.

https://www.codechief.org/article/learn-how-to-use-laravel-model-events

Discussion

pic
Editor guide