Override Payload Exception of Laravel - development

Override Payload Exception of Laravel

I am getting an exception of payload is invalid when editing the encrypted ID as manually.

I need to make as a json response for this exception like

   ['status=>400,'message'=>'The Payload is invalid']

When working with API’s I am using the encrypted form of ID and I getting the HTML type exception for Payload is invalid. I wan to to change it to the json format for avoiding type issue in Mobile team.

enter image description here



from Laravel Questions and Answers https://laravelquestions.com/laravel/override-payload-exception-of-laravel/
via Lzo Media

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development