model.afterFetch

Called after the model is fetched

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

Example usage:

$model->bindEvent('model.afterFetch', function () use (\Winter\Storm\Database\Model $model) { \Log::info("{$model->name} was retrieved from the database"); });

Usage

Triggers

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