group(function () { Route::get('bixo_campaign/form/{element}', 'BixoCampaignAPIController@form'); Route::resource('bixo_campaign', 'BixoCampaignAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for bixocampaigns Route::prefix('{guard}/bixocampaign')->group(function () { Route::get('bixo_campaign/form/{element}', 'BixoCampaignAPIController@form'); Route::apiResource('bixo_campaign', 'BixoCampaignAPIController'); }); // Public routes for bixocampaigns Route::get('bixocampaign/BixoCampaign', 'BixoCampaignPublicController@getBixoCampaign'); } ); }