public static function bootInventoryTransactionHistoryTrait() { static::creating(function (Model $model) { $model->setAttribute('user_id', Helper::getCurrentUserId()); }); }