How to intercept errors and change the corresponding http response code in laravel?
给我你的怀抱
给我你的怀抱 2017-05-16 16:52:44
0
1
430

Mine is a single-page website, and the page will obtain a csrf token when it is loaded for the first time, but this token will time out. When it times out, a "TokenMismatchException" error will be reported and the response code is 500. If Normal access is 200. Now I need to change the error response code of this TokenMismatchException to 509. What should I do?

给我你的怀抱
给我你的怀抱

reply all(1)
大家讲道理

Exceptions/handler.php ----》 report

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template