group(function () { Route::resource('b2buy', 'B2buyResourceController'); }); // 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 pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'B2buyResourceController'); }); // Public routes for pages Route::get('faqs/', 'B2buyPublicController@index'); Route::get('faqs/{slug?}', 'B2buyPublicController@show'); } ); }