group(function () { Route::get('review/form/{element}', 'ReviewAPIController@form'); Route::resource('review', 'ReviewAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for reviews Route::prefix('{guard}/review')->group(function () { Route::get('review/form/{element}', 'ReviewAPIController@form'); Route::apiResource('review', 'ReviewAPIController'); }); // Public routes for reviews Route::get('review/Review', 'ReviewPublicController@getReview'); } ); }