FIX: fix localization of comments
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
<?php
|
||||
// routes for comments
|
||||
|
||||
Route::group([
|
||||
'middleware' => ['web', 'auth', 'adminMenu'],
|
||||
'prefix' => 'admin/comments',
|
||||
'prefix' => LaravelLocalization::setLocale(),
|
||||
'middleware' => ['localeSessionRedirect', 'localizationRedirect'],
|
||||
'namespace' => 'Modules\Blog\Article\Http\Controllers\Admin'
|
||||
], function () {
|
||||
Route::group([
|
||||
'middleware' => ['web', 'auth', 'adminMenu'],
|
||||
'prefix' => 'admin/comments',
|
||||
], function () {
|
||||
|
||||
Route::get('/', 'CommentsOverview@getOverview')
|
||||
->name('comments.overview');
|
||||
Route::get('/', 'CommentsOverview@getOverview')
|
||||
->name('comments.overview');
|
||||
|
||||
Route::get('/delete/{id}', 'EditComment@delete')
|
||||
->name('comments.delete');
|
||||
Route::get('/delete/{id}', 'EditComment@delete')
|
||||
->name('comments.delete');
|
||||
|
||||
Route::get('/approve/{id}', 'EditComment@approve')
|
||||
->name('comments.approve');
|
||||
});
|
||||
Route::get('/approve/{id}', 'EditComment@approve')
|
||||
->name('comments.approve');
|
||||
});
|
||||
|
||||
Route::group([
|
||||
'middleware' => ['web'],
|
||||
'prefix' => 'comments',
|
||||
'namespace' => 'Modules\Blog\Article\Http\Controllers\Visitor'
|
||||
], function () {
|
||||
// public routes
|
||||
Route::group(['middleware' => ['web']], function () {
|
||||
|
||||
Route::post('/new/{id}', 'CreateNewComment@postNew')
|
||||
->name('comments.new');
|
||||
Route::post('comments/new/{id}', 'CreateNewComment@postNew')
|
||||
->name('comments.new');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user