Laravel Error “laravel Exception in JsonResponse.php line 51:”

To fix this you need to make sure the getters and setters in your model do not have any errors.

If your using a specific select fields on the ORM query then those (getters/setters) mutators which use those fields will return an error thus not being able to convert into JSON.

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *