Support the ongoing development of Laravel.io →
IOC Validation Laravel.io
Last updated 7 months ago.
0

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.

0

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.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

matejMurin matejmurin Joined 28 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.