protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->foundation->make('orchestra.theme.finder')->detect();

        return $themes->filter(function ($manifest) use ($type) {
            if (! empty($manifest->type) && ! in_array($type, $manifest->type)) {
                return null;
            }

            return $manifest;
        });
    }
protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->foundation->make('orchestra.theme.finder')->detect();

        return $themes->filter(function ($manifest) use ($type) {
            if (! empty($manifest->type) && ! in_array($type, $manifest->type)) {
                return null;
            }

            return $manifest;
        });
    }
protected function getAvailableTheme ( string $ type ) : Collection { $ themes = $ this -> foundation -> make ( 'orchestra.theme.finder' ) -> detect ( ) ; return $ themes -> filter ( function ( $ manifest ) use ( $ type ) { if ( ! empty ( $ manifest -> type ) && ! in_array ( $ type , $ manifest -> type ) ) { return null ; } return $ manifest ; } ) ; }
Get all available theme.

@param  string  $type

@return \Illuminate\Support\Collection
Get all available theme .