Thursday, May 10, 2018

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

No comments:

Post a Comment