How to Seed JSON Data in Laravel?

Suppose we have created a JSON file for a particular task like a country list and we need to use it at multiple locations and process some operations like sorting, searching, filtering, etc. So we can handle it more easily and save processing time with databases instead of files. But converting JSON Data into the

Learn More

Encode Decode JSON In PHP

JSON stands for JavaScript Object Notation. JSON is an open standard data format used to transfer data quickly and easily. In PHP, there is an in-built function to handle JSON operations like encode and decode. Objects or arrays can easily be parsed into JSON using those functions. Then we can transfer JSON sting over HTTP/HTTPS

Learn More

How to Convert Collection Into JSON In Laravel

Laravel uses collection classes as common data storage. But while creating APIs JSON is an idle data type to return response data instead of a collection. In this tutorial, you will learn how to convert collection data into JSON strings. Those data can be a model instance or even a manually created collection. We will

Learn More