500 internal server error when Nexmo or Mail fails in Laravel 5.3
For some reason when I make a post request via ajax to a route to send an sms or a mail using Nexmo or Mail, I get a "500 internal server error" and the page blocks and I have to close the window tab and open another.
This happens when something goes wrong, for example: a wrong formatted phone number. In this case, Nexmo writes the error in storage/logs/laravel.log but nothing is returned in controller to output to user, just this "500 error" and the page blocks.
Same thing with the Laravel Mail function.
I'm using Laravel 5.3
Does anyone knows why this is happening ?
链接地址: http://www.djcxy.com/p/33142.html上一篇: PHP