public function getPublishedOrderedChildren($perPage = null)
    {
        $children = $this->children()
            ->published();

        $this->determineChildrenSorting($children);

        return $this->determineChildrenPagination($perPage, $children);
    }
public function getPublishedOrderedChildren($perPage = null)
    {
        $children = $this->children()
            ->published();

        $this->determineChildrenSorting($children);

        return $this->determineChildrenPagination($perPage, $children);
    }
public function getPublishedOrderedChildren ( $ perPage = null ) { $ children = $ this -> children ( ) -> published ( ) ; $ this -> determineChildrenSorting ( $ children ) ; return $ this -> determineChildrenPagination ( $ perPage , $ children ) ; }
Returns all published children with parameter ordered

@param int|null $perPage
@return Collection|LengthAwarePaginator
Returns all published children with parameter ordered