group(function () { Route::resource('block', 'BlockResourceController'); }); // Guard routes for download Route::prefix('{guard}/school')->group(function () { Route::resource('download', 'DownloadResourceController'); }); // Guard routes for gallery Route::prefix('{guard}/school')->group(function () { Route::resource('gallery', 'GalleryResourceController'); }); // Guard routes for notice Route::prefix('{guard}/school')->group(function () { Route::resource('notice', 'NoticeResourceController'); }); // Guard routes for slider Route::prefix('{guard}/school')->group(function () { Route::resource('slider', 'SliderResourceController'); }); // Guard routes for testimonial Route::prefix('{guard}/school')->group(function () { Route::resource('testimonial', 'TestimonialResourceController'); }); // Public routes for school Route::get('schools/', 'SchoolPublicController@index'); Route::get('school/{slug?}', 'SchoolPublicController@show');