Monthly Archives: November 2017

Laravel: Observer

Assalamualaikum & Hi, Eloquent models fire several events, allowing you to hook into the following points in a model’s lifecycle: retrieved, creating, created, updating, updated, saving, saved, deleting, deleted, restoring, restored. Events allow you to easily execute code each time a specific model class is saved or updated in the database. Based on events above,… Read More »