Stevebauman\Inventory\Traits\InventoryStockMovementTrait::bootInventoryStockMovementTrait PHP Метод

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

Overrides the models boot function to set the user ID automatically to every new record.
public static bootInventoryStockMovementTrait ( ) : void
Результат void
    public static function bootInventoryStockMovementTrait()
    {
        static::creating(function (Model $record) {
            $record->setAttribute('user_id', Helper::getCurrentUserId());
        });
    }