public function mapPluginsBackendRoutes()
    {
        foreach(Plugin::activePlugins() as $plugin){
            $backendRoutes = $plugin->backendRoutes();
            if($backendRoutes) {
                \Route::group(
                    [
                    'middleware' => $this->middleware['backend'],
                    'as' => 'Backend.'.$plugin->namespaceWithDot().".",
                    'namespace' => $plugin->parseNamespace().'\Controllers',
                    'prefix' => Config::get('project')['adminPrefix']."/".$plugin->backendURLPrefix()
                    ], function () use ($backendRoutes) {
                        foreach($backendRoutes as $file){
                            include $file->getPathname();
                        }
                    }
                );
            }
        }
        return $this;
    }
public function mapPluginsBackendRoutes()
    {
        foreach(Plugin::activePlugins() as $plugin){
            $backendRoutes = $plugin->backendRoutes();
            if($backendRoutes) {
                \Route::group(
                    [
                    'middleware' => $this->middleware['backend'],
                    'as' => 'Backend.'.$plugin->namespaceWithDot().".",
                    'namespace' => $plugin->parseNamespace().'\Controllers',
                    'prefix' => Config::get('project')['adminPrefix']."/".$plugin->backendURLPrefix()
                    ], function () use ($backendRoutes) {
                        foreach($backendRoutes as $file){
                            include $file->getPathname();
                        }
                    }
                );
            }
        }
        return $this;
    }
public function mapPluginsBackendRoutes ( ) { foreach ( Plugin :: activePlugins ( ) as $ plugin ) { $ backendRoutes = $ plugin -> backendRoutes ( ) ; if ( $ backendRoutes ) { \ Route :: group ( [ 'middleware' => $ this -> middleware [ 'backend' ] , 'as' => 'Backend.' . $ plugin -> namespaceWithDot ( ) . "." , 'namespace' => $ plugin -> parseNamespace ( ) . '\Controllers' , 'prefix' => Config :: get ( 'project' ) [ 'adminPrefix' ] . "/" . $ plugin -> backendURLPrefix ( ) ] , function ( ) use ( $ backendRoutes ) { foreach ( $ backendRoutes as $ file ) { include $ file -> getPathname ( ) ; } } ) ; } } return $ this ; }
Define "Plugins" backend routes for the application.

It only takes in consideration active plugins

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