no need of mention of namespace unless u changed namespace of controller if u want use your controller for api then a separate route file available in routs folder api.php(version 5.3 5.4)
@vipin93 UnexpectedValueException in Response.php line 444: The Response content must be a string or object implementing __toString(), "boolean" given.
Please help me to resolve this.
this is my function
public function fn_searchcourses($limit,$country,$searchword,$misspell)
{
if($limit > 100 || $misspell >2)
{
$returnerrors['Error']="Sorry something went wrong, The maximum limit is 100 && You should pass misspellmatch is 0,1 or 2(0-default, 1-similar,2-exact";
return $returnerrors;
}
$results = $this->search_Course->rep_getsearchcourses($limit,$country,$searchword,$misspell);
return $results;
}