group(function () { Route::resource('meeting', 'MeetingResourceController'); }); // Public routes for meeting Route::get('meetings/', 'MeetingPublicController@index'); Route::get('meetings/{slug?}', 'MeetingPublicController@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', 'MeetingResourceController'); }); // Public routes for pages Route::get('meetings/', 'MeetingPublicController@index'); Route::get('meetings/{slug?}', 'MeetingPublicController@show'); } ); }