src/Lib/Scanner.php
protected static function pluginsWithTemplates(): array
    {
        $plugins = Plugin::loaded();

        array_walk($plugins, function ($plugin, $index) use (&$plugins) {
            $paths = App::path('Template', $plugin);

            array_walk($paths, function ($path, $index) use (&$paths) {
                if (!is_dir($path)) {
                    unset($paths[$index]);
                }
            });
        });

        return $plugins;
    }
protected static function pluginsWithTemplates(): array
    {
        $plugins = Plugin::loaded();

        array_walk($plugins, function ($plugin, $index) use (&$plugins) {
            $paths = App::path('Template', $plugin);

            array_walk($paths, function ($path, $index) use (&$paths) {
                if (!is_dir($path)) {
                    unset($paths[$index]);
                }
            });
        });

        return $plugins;
    }
protected static function pluginsWithTemplates ( ) : array { $ plugins = Plugin :: loaded ( ) ; array_walk ( $ plugins , function ( $ plugin , $ index ) use ( & $ plugins ) { $ paths = App :: path ( 'Template' , $ plugin ) ; array_walk ( $ paths , function ( $ path , $ index ) use ( & $ paths ) { if ( ! is_dir ( $ path ) ) { unset ( $ paths [ $ index ] ) ; } } ) ; } ) ; return $ plugins ; }
Finds all plugins with a Template directory.

@return array
Finds all plugins with a Template directory .