app/Place.php
public function getChildPlaces(): array
    {
        if ($this->place_name !== '') {
            $parent_text = Gedcom::PLACE_SEPARATOR . $this->place_name;
        } else {
            $parent_text = '';
        }

        return DB::table('places')
            ->where('p_file', '=', $this->tree->id())
            ->where('p_parent_id', '=', $this->id())
            ->orderBy(DB::raw('p_place /*! COLLATE ' . I18N::collation() . ' */'))
            ->pluck('p_place')
            ->map(function (string $place) use ($parent_text): Place {
                return new self($place . $parent_text, $this->tree);
            })
            ->all();
    }
public function getChildPlaces(): array
    {
        if ($this->place_name !== '') {
            $parent_text = Gedcom::PLACE_SEPARATOR . $this->place_name;
        } else {
            $parent_text = '';
        }

        return DB::table('places')
            ->where('p_file', '=', $this->tree->id())
            ->where('p_parent_id', '=', $this->id())
            ->orderBy(DB::raw('p_place /*! COLLATE ' . I18N::collation() . ' */'))
            ->pluck('p_place')
            ->map(function (string $place) use ($parent_text): Place {
                return new self($place . $parent_text, $this->tree);
            })
            ->all();
    }
public function getChildPlaces ( ) : array { if ( $ this -> place_name !== '' ) { $ parent_text = Gedcom :: PLACE_SEPARATOR . $ this -> place_name ; } else { $ parent_text = '' ; } return DB :: table ( 'places' ) -> where ( 'p_file' , '=' , $ this -> tree -> id ( ) ) -> where ( 'p_parent_id' , '=' , $ this -> id ( ) ) -> orderBy ( DB :: raw ( 'p_place /*! COLLATE ' . I18N :: collation ( ) . ' */' ) ) -> pluck ( 'p_place' ) -> map ( function ( string $ place ) use ( $ parent_text ) : Place { return new self ( $ place . $ parent_text , $ this -> tree ) ; } ) -> all ( ) ; }
Get the lower level places.

@return Place[]
Get the lower level places .