src/Http/Response.php
public function ok($data, int $status = 200, int $encodingOptions = 0)
    {
        $this->validHttpCode($status);
        return parent::withJson($data, $status, $encodingOptions);
    }
public function ok($data, int $status = 200, int $encodingOptions = 0)
    {
        $this->validHttpCode($status);
        return parent::withJson($data, $status, $encodingOptions);
    }
public function ok ( $ data , int $ status = 200 , int $ encodingOptions = 0 ) { $ this -> validHttpCode ( $ status ) ; return parent :: withJson ( $ data , $ status , $ encodingOptions ) ; }
Response data with 2xx status code

@param mixed   $data            Mensaje de respuesta
@param integer $status          Http Code. Valores posibles: 2xx. Defecto: 200
@param integer $encodingOptions Flag de JSON para imprimir json.
Ver: http://php.net/manual/es/json.constants.php

@throws \InvalidArgumentException Si el httpcode es inválido
@return Response
Response data with 2xx status code