src/Router.php
public static function adminRoutes(\Illuminate\Routing\Router $router)
    {

        $router->group(['prefix' => 'translations'], function (\Illuminate\Routing\Router $router) {

            $router->get('/export', [
                'as'   => 'translations.export',
                'uses' => TranslationsController::class . '@export'
            ]);

            $router->post('/import', [
                'as'   => 'translations.import',
                'uses' => TranslationsController::class . '@import'
            ]);

            $router->post('/edit/{group}', [
                'as'   => 'translations.edit',
                'uses' => TranslationsController::class . '@edit'
            ]);

            $router->get('/manual', [
                'as'   => 'translations.manual',
                'uses' => TranslationsController::class . '@manual'
            ]);

            $router->post('/store', [
                'as'   => 'translations.store',
                'uses' => TranslationsController::class . '@storeTranslation'
            ]);

            $router->get('/{group?}', [
                'as'   => 'translations.index',
                'uses' => TranslationsController::class . '@index'
            ]);
        });

        $router->resources([
            'languages' => LanguagesController::class
        ]);
    }
public static function adminRoutes(\Illuminate\Routing\Router $router)
    {

        $router->group(['prefix' => 'translations'], function (\Illuminate\Routing\Router $router) {

            $router->get('/export', [
                'as'   => 'translations.export',
                'uses' => TranslationsController::class . '@export'
            ]);

            $router->post('/import', [
                'as'   => 'translations.import',
                'uses' => TranslationsController::class . '@import'
            ]);

            $router->post('/edit/{group}', [
                'as'   => 'translations.edit',
                'uses' => TranslationsController::class . '@edit'
            ]);

            $router->get('/manual', [
                'as'   => 'translations.manual',
                'uses' => TranslationsController::class . '@manual'
            ]);

            $router->post('/store', [
                'as'   => 'translations.store',
                'uses' => TranslationsController::class . '@storeTranslation'
            ]);

            $router->get('/{group?}', [
                'as'   => 'translations.index',
                'uses' => TranslationsController::class . '@index'
            ]);
        });

        $router->resources([
            'languages' => LanguagesController::class
        ]);
    }
public static function adminRoutes ( \ Illuminate \ Routing \ Router $ router ) { $ router -> group ( [ 'prefix' => 'translations' ] , function ( \ Illuminate \ Routing \ Router $ router ) { $ router -> get ( '/export' , [ 'as' => 'translations.export' , 'uses' => TranslationsController :: class . '@export' ] ) ; $ router -> post ( '/import' , [ 'as' => 'translations.import' , 'uses' => TranslationsController :: class . '@import' ] ) ; $ router -> post ( '/edit/{group}' , [ 'as' => 'translations.edit' , 'uses' => TranslationsController :: class . '@edit' ] ) ; $ router -> get ( '/manual' , [ 'as' => 'translations.manual' , 'uses' => TranslationsController :: class . '@manual' ] ) ; $ router -> post ( '/store' , [ 'as' => 'translations.store' , 'uses' => TranslationsController :: class . '@storeTranslation' ] ) ; $ router -> get ( '/{group?}' , [ 'as' => 'translations.index' , 'uses' => TranslationsController :: class . '@index' ] ) ; } ) ; $ router -> resources ( [ 'languages' => LanguagesController :: class ] ) ; }
Register admin routes

@return void
Register admin routes