Example #1
0
 /**
  * Return a new JSON response.
  *
  * @param  string|array  $data
  * @param  int    $status
  * @param  array  $headers
  * @return \Illuminate\Http\JsonResponse
  */
 public function resourceJson($data = array(), $status = 200, array $headers = array())
 {
     $headers = array_merge($headers, $this->getRequestLimitHeader());
     $headers = array_merge($headers, $this->getConfig('headers'));
     return Response::resourceJson($data, $status, $headers);
 }