json() public method

Send a JSON payload in the request body.
public json ( string | array $content ) : Dispatcher
$content string | array
return Dispatcher
Exemplo n.º 1
0
 /**
  * Send a JSON payload in the request body.
  *
  * @param string|array $content
  * @return \Dingo\Api\Dispatcher 
  * @static 
  */
 public static function json($content)
 {
     return \Dingo\Api\Dispatcher::json($content);
 }