+7 (913) 863-43-92 touch_app
Первая статья
Первая статья
person Ordinary user event 18 января 2021 г.
Sometimes you may wish to define a scope that accepts parameters. To get started, just add your additional parameters to your scope method's signature.

Eloquent models dispatch several events, allowing you to hook into the following moments in a model's lifecycle: retrieved, creating, created, updating, updated, saving, saved, deleting, deleted, restoring, restored, and replicating. The retrieved event will dispatch when an existing model is retrieved from the database. When a new model is saved for the first time, the creating and created events will dispatch. The updating / updated events will dispatch when an existing model is modified and the save method is called. The saving / saved events will dispatch when a model is created or updated - even if the model's attributes have not been changed.

Sophie Marceau
Sophie Marceau
8 месяцев назад
Eloquent models dispatch several events, allowing you to hook into the following moments in a model's lifecycle: retrieved, creating, created, updating, updated, saving, saved, deleting, deleted, restoring, restored, and replicating. The retrieved event will dispatch when an existing model is retrieved from the database. When a new model is saved for the first time, the creating and created events will dispatch. The updating / updated events will dispatch when an existing model is modified and the save method is called. The saving / saved events will dispatch when a model is created or updated - even if the model's attributes have not been changed.
* Чтобы оставить комментарий, создать статью пожалуйста,
зарегистрируйтесь  или  войдите.