src/APIResponse.php
public function respondWithMessage($message = "Ok")
    {
        $data = $this->getResponseStructure(true, null, $message);

        return $this->respond($data);
    }
public function respondWithMessage($message = "Ok")
    {
        $data = $this->getResponseStructure(true, null, $message);

        return $this->respond($data);
    }
public function respondWithMessage ( $ message = "Ok" ) { $ data = $ this -> getResponseStructure ( true , null , $ message ) ; return $ this -> respond ( $ data ) ; }
Use this for responding with messages.

@param string $message

@return JsonResponse
Use this for responding with messages .