I have the issue that laravel (version 8) adds php notices I get to the response as html string. This is really annoying because the response should be json and now I have string that contains html and json. This is how the response looks:
<br />\n<b>Notice</b>: Unknown: file created in the system's temporary directory in <b>Unknown</b> on line <b>0</b><br />
{\"type\":[\"The type field is required.\"]}
Any idea how to disable this behaviour ?
I already tried using phps error_reporting()
function.
Even with APP_DEBUG=false
this occurs.