set_route_guard('web').'/material'], function () { Route::resource('material', 'MaterialResourceController'); }); // Public routes for material Route::get('material/popular/{period?}', 'MaterialPublicController@popular'); Route::get('materials/', 'MaterialPublicController@index'); Route::get('materials/{slug?}', 'MaterialPublicController@show');