trans_setlocale().'/admin/test', 'middleware' => ['web', 'auth.role:admin']], function () { Route::resource('news', 'Tet\Test\Http\Controllers\NewsAdminController'); }); // User routes for news Route::group(['prefix' => trans_setlocale().'/user/test', 'middleware' => ['web', 'auth.role:user']], function () { Route::resource('news', 'Tet\Test\Http\Controllers\NewsUserController'); }); // Public routes for news Route::group(['prefix' => trans_setlocale(), 'middleware' => ['web']], function () { Route::get('test/news', 'Tet\Test\Http\Controllers\NewsPublicController@index'); Route::get('test/news/{slug?}', 'Tet\Test\Http\Controllers\NewsPublicController@show'); });