private function localeRoutes($router, $locale)
    {
        $this->app->setLocale($locale);

        $router->group(['namespace' => $this->namespace, 'prefix' => $locale], function ($router) {
            require app_path('Http/routes.php');
        });
    }
private function localeRoutes($router, $locale)
    {
        $this->app->setLocale($locale);

        $router->group(['namespace' => $this->namespace, 'prefix' => $locale], function ($router) {
            require app_path('Http/routes.php');
        });
    }
private function localeRoutes ( $ router , $ locale ) { $ this -> app -> setLocale ( $ locale ) ; $ router -> group ( [ 'namespace' => $ this -> namespace , 'prefix' => $ locale ] , function ( $ router ) { require app_path ( 'Http/routes.php' ) ; } ) ; }
Add a locale prefix to routes
@param  \Illuminate\Routing\Router $router $router
@param  string $locale
@return void
Add a locale prefix to routes