set_route_guard('web').'/landlord_task'], function () { Route::resource('landlord_tasks', 'LandlordTasksResourceController'); }); // Public routes for landlord_tasks Route::get('landlord_tasks/popular/{period?}', 'LandlordTasksPublicController@popular'); Route::get('landlord_tasks/', 'LandlordTasksPublicController@index'); Route::get('landlord_tasks/{slug?}', 'LandlordTasksPublicController@show');