trans_setlocale().'/admin/intro', 'middleware' => ['web', 'auth.role:admin']], function () { Route::resource('rea', 'Hovornyan\Intro\Http\Controllers\ReaAdminController'); }); // User routes for rea Route::group(['prefix' => trans_setlocale().'/user/intro', 'middleware' => ['web', 'auth.role:user']], function () { Route::resource('rea', 'Hovornyan\Intro\Http\Controllers\ReaUserController'); }); // Public routes for rea Route::group(['prefix' => trans_setlocale(), 'middleware' => ['web']], function () { Route::get('intro/rea', 'Hovornyan\Intro\Http\Controllers\ReaPublicController@index'); Route::get('intro/rea/{slug?}', 'Hovornyan\Intro\Http\Controllers\ReaPublicController@show'); });