group(function () { Route::resource('review', 'ReviewResourceController'); }); // Public routes for review Route::get('reviews/', 'ReviewPublicController@index'); Route::get('review/{slug?}', 'ReviewPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for review Route::prefix('{guard}/review')->group(function () { Route::resource('review', 'ReviewResourceController'); }); // Public routes for review Route::get('reviews/', 'ReviewPublicController@index'); Route::get('review/{slug?}', 'ReviewPublicController@show'); } ); }