model.afterCreate

Called after the model is created

Note: also triggered in Winter\Storm\Halcyon\Model

Example usage:

$model->bindEvent('model.afterCreate', function () use (\Winter\Storm\Database\Model $model) { \Log::info("{$model->name} was created!"); });

Usage

Triggers

Class or file Line
Winter\Storm\Database\Model 318
Copyright © 2024 Winter CMS