app/Http/Controllers/ListController.php
private function allNotes(Tree $tree): Collection
    {
        return DB::table('other')
            ->where('o_file', '=', $tree->id())
            ->where('o_type', '=', 'NOTE')
            ->get()
            ->map(Note::rowMapper())
            ->filter(GedcomRecord::accessFilter());
    }
private function allNotes(Tree $tree): Collection
    {
        return DB::table('other')
            ->where('o_file', '=', $tree->id())
            ->where('o_type', '=', 'NOTE')
            ->get()
            ->map(Note::rowMapper())
            ->filter(GedcomRecord::accessFilter());
    }
private function allNotes ( Tree $ tree ) : Collection { return DB :: table ( 'other' ) -> where ( 'o_file' , '=' , $ tree -> id ( ) ) -> where ( 'o_type' , '=' , 'NOTE' ) -> get ( ) -> map ( Note :: rowMapper ( ) ) -> filter ( GedcomRecord :: accessFilter ( ) ) ; }
Find all the note records in a tree.

@param Tree $tree

@return Collection
@return Note[]
Find all the note records in a tree .