Esempio n. 1
0
 /**
  * Determine if the request is sending JSON.
  * Overridden to ensure that JSON API content is correctly considered JSON.
  *
  * @return bool
  */
 public function isJson()
 {
     return parent::isJson() || $this->header('CONTENT_TYPE') === 'application/vnd.api+json';
 }