Backend Discussion

Observers in Laravel

Laravel has a feature called observer. Using observer, we can observe specific model values and invoke callback when their values are changed. We can use them in various purposes, for example logging.

For example: imagine there is a product model. when product was created, I need to fetch any things from third-part. In the case, we can use this Observers.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *