Stevebauman\Inventory\Traits\InventoryTransactionHistoryTrait::bootInventoryTransactionHistoryTrait PHP Метод

bootInventoryTransactionHistoryTrait() публичный статический Метод

Make sure we try and assign the current user if enabled.
public static bootInventoryTransactionHistoryTrait ( ) : void
Результат void
    public static function bootInventoryTransactionHistoryTrait()
    {
        static::creating(function (Model $model) {
            $model->setAttribute('user_id', Helper::getCurrentUserId());
        });
    }