-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds callbacks for creating/created/updating/updated models on a controller. Callbacks can be defined in controllers that inherit the `EloquentController`. ``php class UsersController extends EloquentController { protected function creating(Model $model) { // Before the model is created. } protected function created(Model $model) { // After the model has been created. } protected function updating(Model $model) { // Before the model is updated. } protected function updated() { // After the model has been created. } } `` --- See #11 for a bit more discussion.`
- Loading branch information
1 parent
e52a3f9
commit 5e11231
Showing
1 changed file
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters