### Introduction: #### How to generate customized Json data using resource in Laravel? >In Our previous tutorial we have seen how to generate json data in which we just did a Direct Map of our User database table. **Now, We are going to play arround Json data as per our requirement. Every Time Requirements will be diffrent Right...... So we are gona generate different numbers of data in many ways... Just go for it Guys...!** + If i don't need `id`,`created_at` and `updated_at` field in my Json Object. what would i do then... + Lets see where i will make Changes in code. NOte: Make sure you have Resourec folder with User class under `\app\http\Resources` #### STEP 1: Concept Overview +Change the content of above file as shown below. ```php $this->name, 'email' => $this->email, ]; } } ``` #### STEP 2: Add below Changes in `web.php` file + If you already have below lines of code in your web.php, then no need of any change. ```php ## My basic recommendation for learning : [Eloquent: API Resources](https://laravel.com/docs/7.x/eloquent-resources) ## Thanks ##