group(function () { Route::resource('standard', 'StandardResourceController'); }); // Guard routes for division Route::prefix('{guard}/standard')->group(function () { Route::resource('division', 'DivisionResourceController'); }); // Guard routes for subject Route::prefix('{guard}/standard')->group(function () { Route::resource('subject', 'SubjectResourceController'); }); // Guard routes for timetable Route::prefix('{guard}/standard')->group(function () { Route::resource('timetable', 'TimetableResourceController'); }); // Public routes for standard Route::get('standards/', 'StandardPublicController@index'); Route::get('standard/{slug?}', 'StandardPublicController@show');