app/Http/Controllers/ListController.php
private function allSources(Tree $tree): Collection
    {
        return DB::table('sources')
            ->where('s_file', '=', $tree->id())
            ->get()
            ->map(Source::rowMapper())
            ->filter(GedcomRecord::accessFilter());
    }
private function allSources(Tree $tree): Collection
    {
        return DB::table('sources')
            ->where('s_file', '=', $tree->id())
            ->get()
            ->map(Source::rowMapper())
            ->filter(GedcomRecord::accessFilter());
    }
private function allSources ( Tree $ tree ) : Collection { return DB :: table ( 'sources' ) -> where ( 's_file' , '=' , $ tree -> id ( ) ) -> get ( ) -> map ( Source :: rowMapper ( ) ) -> filter ( GedcomRecord :: accessFilter ( ) ) ; }
Find all the source records in a tree.

@param Tree $tree

@return Collection
@return Source[]
Find all the source records in a tree .