Fatal error: Uncaught ArgumentCountError: Too few arguments to function App\Models\SubCategory::fetchByName(), 0 passed in /home/wewccxsdh94b/public_html/app/controllers/ServiceController.php on line 25 and exactly 1 expected in /home/wewccxsdh94b/public_html/app/models/SubCategory.php:58
Stack trace:
#0 /home/wewccxsdh94b/public_html/app/controllers/ServiceController.php(25): App\Models\SubCategory->fetchByName()
#1 [internal function]: App\Controllers\ServiceController->indexAction()
#2 /home/wewccxsdh94b/public_html/core/Router.php(37): call_user_func_array(Array, Array)
#3 /home/wewccxsdh94b/public_html/index.php(37): Core\Router::route(Array)
#4 {main}
thrown in /home/wewccxsdh94b/public_html/app/models/SubCategory.php on line 58