used Response::json instead of echo json_encode)(