group(function () { Route::resource('scheduler', 'SchedulerResourceController'); }); // Public routes for scheduler Route::get('schedulers/', 'SchedulerPublicController@index'); Route::get('scheduler/{slug?}', 'SchedulerPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for scheduler Route::prefix('{guard}/scheduler')->group(function () { Route::resource('scheduler', 'SchedulerResourceController'); }); // Public routes for scheduler Route::get('schedulers/', 'SchedulerPublicController@index'); Route::get('scheduler/{slug?}', 'SchedulerPublicController@show'); } ); }