@php echo "json(ResponseUtil::makeResponse($message, $result)); } public function sendError($error, $code = 404) { return response()->json(ResponseUtil::makeError($error), $code); } public function sendSuccess($message) { return response()->json([ 'success' => true, 'message' => $message ], 200); } }