芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/Modules/Pages/Routes/web.php
LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ] ], function(){ Route::group(['namespace' => 'Front'], function () { // pages Route::get('/page/{slug}', 'PageController@show')->name('page-page'); }); Route::middleware('auth')->prefix(env('PREFIX_ADMIN', 'admin'))->group(function() { // pages Route::resource('/pages', 'PageController')->parameters(['pages' => 'id']); Route::delete('/pages-multi-destroy', 'PageController@multiDestroy')->name('pages.multi-destroy'); Route::get('/pages-search', 'PageController@searchPages')->name('pages.search'); Route::get('/static-pages-search', 'PageController@searchStaticPages')->name('static_pages.search'); }); }); }else{ Route::group(['namespace' => 'Front'], function () { // pages Route::get('/page/{slug}', 'PageController@show')->name('page-page'); }); Route::middleware('auth')->prefix(env('PREFIX_ADMIN', 'admin'))->group(function() { // pages Route::resource('/pages', 'PageController')->parameters(['pages' => 'id']); Route::delete('/pages-multi-destroy', 'PageController@multiDestroy')->name('pages.multi-destroy'); Route::get('/pages-search', 'PageController@searchPages')->name('pages.search'); Route::get('/static-pages-search', 'PageController@searchStaticPages')->name('static_pages.search'); }); }