hmm, i don't think you can send a json response since the abort function just calls the abort method in the application class. the third parameter is an array of headers.
Is there any other way to save error logs in database? I want to throw Exception in my code ( in some controller ) and then save to my databse table info about this exception in Exception/Handler.php. However, I need to add to this exception some fields to better identify this exception and then save these fields to database table.
astroanu said:
hmm, i don't think you can send a json response since the abort function just calls the abort method in the application class. the third parameter is an array of headers.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community