app/Tree.php
public static function getAll(): array
    {
        if (empty(self::$trees)) {
            self::$trees = self::all()->all();
        }

        return self::$trees;
    }
public static function getAll(): array
    {
        if (empty(self::$trees)) {
            self::$trees = self::all()->all();
        }

        return self::$trees;
    }
public static function getAll ( ) : array { if ( empty ( self :: $ trees ) ) { self :: $ trees = self :: all ( ) -> all ( ) ; } return self :: $ trees ; }
Fetch all the trees that we have permission to access.

@return Tree[]
Fetch all the trees that we have permission to access .