title: Laravel create nested json response
body: <p>How to create a nested json response in Laravel 5? For example:</p>
  
  <pre><code>"response":["status":"OK",
              "data":{ "user":{"name": "Shriyansh",
                               "email":"some@email.com",
                               "contact":"1234567890",
                               "fcmToken":"Token@123"
                              },
                       "event":{"status":"successful",
                                "status_code":4
                               }
                     }
             ]
  </code></pre>