group(function () { Route::get('b2buy/form/{element}', 'B2buyAPIController@form'); Route::resource('b2buy', 'B2buyAPIController'); }); // Public routes for b2buy Route::get('faqs/', 'B2buyPublicController@index'); Route::get('faqs/{slug?}', 'B2buyPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for faqs Route::prefix('{guard}/faq')->group(function () { Route::get('b2buy/form/{element}', 'B2buyAPIController@form'); Route::apiResource('b2buy', 'B2buyAPIController'); }); // Public routes for faqs Route::get('faq/B2buy', 'B2buyPublicController@getB2buy'); } ); }