Getting error
"message": "Undefined property: App\Http\Controllers\Api\ApiUserXYzController::$response"
return $this->response->collection($user_list, new ProjectTransformer())->setStatusCode(200);
I"m tring to transform the data but i'm getting $response is not defined. please guide
You forgot to include the helper trait that the docs tell you to
use
if you want the response builder at the propertyresponse
on the controller.Dingo Wiki - Responses - Response Builder