trans_setlocale().'/admin/tag', 'middleware' => ['web', 'auth.role:admin']], function () { Route::resource('tag', 'Tag\Tag\Http\Controllers\TagAdminController'); }); // User routes for tag Route::group(['prefix' => trans_setlocale().'/user/tag', 'middleware' => ['web', 'auth.role:user']], function () { Route::resource('tag', 'Tag\Tag\Http\Controllers\TagUserController'); }); // Public routes for tag Route::group(['prefix' => trans_setlocale(), 'middleware' => ['web']], function () { Route::get('tag/tag', 'Tag\Tag\Http\Controllers\TagPublicController@index'); Route::get('tag/tag/{slug?}', 'Tag\Tag\Http\Controllers\TagPublicController@show'); });