the alast pists

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. Each event receives the instance of the model through its constructor. Theretrievedevent will fire when an existing model… Continue reading the alast pists