resources/Providers/RouteServiceProvider.php
public function map()
    {
        $themeName = ltrim(
            str_replace(themes_path(), '', realpath(__DIR__.'/../../')),
            '\/'
        );

        Route::middleware('web')
            ->namespace($this->namespace)
            ->group(themes_path($themeName.'/routes.php'));
    }
public function map()
    {
        $themeName = ltrim(
            str_replace(themes_path(), '', realpath(__DIR__.'/../../')),
            '\/'
        );

        Route::middleware('web')
            ->namespace($this->namespace)
            ->group(themes_path($themeName.'/routes.php'));
    }
public function map ( ) { $ themeName = ltrim ( str_replace ( themes_path ( ) , '' , realpath ( __DIR__ . '/../../' ) ) , '\/' ) ; Route :: middleware ( 'web' ) -> namespace ( $ this -> namespace ) -> group ( themes_path ( $ themeName . '/routes.php' ) ) ; }
Load theme routes.
Load theme routes .