with('type') ->where('id', $pivot, '<') ->where('transferType', BillTransferType::SALES) ->limit($limit) ->execute(); } /** * Placeholder */ public static function getStockAfterPivot( mixed $pivot, string $column = null, int $limit = 50, int $depth = 3, Builder $query = null ) : array { return self::getAll() ->with('type') ->where('id', $pivot, '>') ->where('transferType', BillTransferType::SALES) ->limit($limit) ->execute(); } }