public function mapPluginsFrontendRoutes()
    {
        foreach(Plugin::activePlugins() as $plugin){
            // Frontend routes
            $frontendRoutes = $plugin->frontendRoutes();
            if($frontendRoutes) {
                \Route::group(
                    [
                    'middleware' => $this->middleware['frontend'],
                    'as' => $plugin->namespaceWithDot().".",
                    'namespace' => $plugin->parseNamespace().'\Controllers',
                    ], function () use ($frontendRoutes) {
                        foreach($frontendRoutes as $file){
                            include $file->getPathname();
                        }
                    }
                );
            }
        }
        return $this;
    }
public function mapPluginsFrontendRoutes()
    {
        foreach(Plugin::activePlugins() as $plugin){
            // Frontend routes
            $frontendRoutes = $plugin->frontendRoutes();
            if($frontendRoutes) {
                \Route::group(
                    [
                    'middleware' => $this->middleware['frontend'],
                    'as' => $plugin->namespaceWithDot().".",
                    'namespace' => $plugin->parseNamespace().'\Controllers',
                    ], function () use ($frontendRoutes) {
                        foreach($frontendRoutes as $file){
                            include $file->getPathname();
                        }
                    }
                );
            }
        }
        return $this;
    }
public function mapPluginsFrontendRoutes ( ) { foreach ( Plugin :: activePlugins ( ) as $ plugin ) { // Frontend routes $ frontendRoutes = $ plugin -> frontendRoutes ( ) ; if ( $ frontendRoutes ) { \ Route :: group ( [ 'middleware' => $ this -> middleware [ 'frontend' ] , 'as' => $ plugin -> namespaceWithDot ( ) . "." , 'namespace' => $ plugin -> parseNamespace ( ) . '\Controllers' , ] , function ( ) use ( $ frontendRoutes ) { foreach ( $ frontendRoutes as $ file ) { include $ file -> getPathname ( ) ; } } ) ; } } return $ this ; }
Define "Plugins" frontend routes for the application.

It only takes in consideration active plugins

@return $this
Define Plugins frontend routes for the application .