So apparently if I put
ob_end_clean();
before echoing / returning the response it works. Here is some more information on why it works.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community