group(function () { Route::resource('faq', 'FaqResourceController'); }); // Public routes for faq Route::get('faqadmins/', 'FaqPublicController@index'); Route::get('faqadmins/{slug?}', 'FaqPublicController@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', 'FaqResourceController'); }); // Public routes for pages Route::get('faqadmins/', 'FaqPublicController@index'); Route::get('faqadmins/{slug?}', 'FaqPublicController@show'); } ); }