芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Localization/Routes/web.php
LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ] ], function(){ Route::middleware('auth')->prefix(env('PREFIX_ADMIN', 'admin'))->group(function() { Route::prefix('localization')->group(function() { // languages Route::resource('/languages', 'LanguageController')->parameters(['languages' => 'id'])->except('create', 'show'); Route::delete('/languages-multi-destroy', 'LanguageController@multiDestroy')->name('languages.multi-destroy'); Route::post('/languages/{id}/switch-default', 'LanguageController@switchDefault')->name('languages.switch-default'); Route::get('/translations/{id}/edit', 'TranslationController@index')->name('translations.edit'); Route::post('/translations/{lang_code}', 'TranslationController@update')->name('translations.update'); }); }); }); }else{ Route::middleware('auth')->prefix(env('PREFIX_ADMIN', 'admin'))->group(function() { Route::prefix('localization')->group(function() { // languages Route::resource('/languages', 'LanguageController')->parameters(['languages' => 'id'])->except('create', 'show'); Route::delete('/languages-multi-destroy', 'LanguageController@multiDestroy')->name('languages.multi-destroy'); Route::post('/languages/{id}/switch-default', 'LanguageController@switchDefault')->name('languages.switch-default'); Route::get('/translations/{id}/edit', 'TranslationController@index')->name('translations.edit'); Route::post('/translations/{lang_code}', 'TranslationController@update')->name('translations.update'); }); }); }