group(function () { Route::resource('task', 'TaskResourceController'); }); // Public routes for task Route::get('tasks/', 'TaskPublicController@index'); Route::get('task/{slug?}', 'TaskPublicController@show');