group(function () { Route::get('review/form/{element}', 'ReviewAPIController@form'); Route::resource('review', 'ReviewAPIController'); }); // Public routes for review Route::get('reviews/', 'ReviewPublicController@index'); Route::get('reviews/{slug?}', 'ReviewPublicController@show'); 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'); } ); }