When building JSON APIs, you will often need to convert your models and relationships to arrays or JSON. Eloquent includes convenient methods for making these conversions, as well as controlling which attributes are included in your serializations and when casting models to an array or JSON, you may wish to add attributes that do not have a corresponding column in your database.so today we are going to discuss how to append values to json in laravel