group(function () { Route::get('lead_meeting/form/{element}', 'LeadMeetingAPIController@form'); Route::resource('lead_meeting', 'LeadMeetingAPIController'); }); // Public routes for lead_meeting Route::get('lead_meetings/', 'LeadMeetingPublicController@index'); Route::get('lead_meetings/{slug?}', 'LeadMeetingPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for lead_meetings Route::prefix('{guard}/lead_meeting')->group(function () { Route::get('lead_meeting/form/{element}', 'LeadMeetingAPIController@form'); Route::apiResource('lead_meeting', 'LeadMeetingAPIController'); }); // Public routes for lead_meetings Route::get('lead_meeting/LeadMeeting', 'LeadMeetingPublicController@getLeadMeeting'); } ); }