9 months ago

Disable Exception Handling In Laravel Tests

Posted 9 months ago by danielcoker

I've been trying to disable exception handling in my test so I can see the errors, but it's not working even if I intentionally break the code.

I'm just getting this generic response and it's not helping much.

Invalid JSON was returned from the route.

I've tried all solutions I can find online, but none of them is working.

I tried $this->disableExceptionHandling(), it didn't work. I also tried the tutorial from Adam Wathan, [https://gist.github.com/adamwathan/125847c7e3f16b88fa33a9f8b42333da] that didn't work also.

Please I need a way out.

Any help would be appreciated.


Please sign in or create an account to participate in this conversation.