{"id":3386,"date":"2026-09-08T10:46:00","date_gmt":"2026-09-08T01:46:00","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=3386"},"modified":"2026-09-08T10:46:00","modified_gmt":"2026-09-08T01:46:00","slug":"20260908-00mtrwuj","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2026\/09\/08\/20260908-00mtrwuj\/","title":{"rendered":"\u8a08\u6e2c\u30c7\u30fc\u30bf\u306e\u6642\u7cfb\u5217\u30b0\u30e9\u30d5API\u3092\u300c\u671f\u9593\u7a93\u3054\u3068\u306b\u6b20\u640d\u30bc\u30ed\u300d\u3067\u8fd4\u3059\u8a2d\u8a08"},"content":{"rendered":"<p>\u8a08\u6e2c\u6a5f\u5668\u5411\u3051\u306eSaaS\u6848\u4ef6\u3067\u3001\u6e2c\u5b9a\u5024\u306e\u63a8\u79fb\u3092\u300c1\u30f6\u6708 \/ 3\u30f6\u6708 \/ \u534a\u5e74 \/ 1\u5e74\u300d\u3067\u5207\u308a\u66ff\u3048\u308b\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u306eAPI\u3092\u62c5\u5f53\u3057\u307e\u3057\u305f\u3002\u4e00\u898b\u300c\u671f\u9593\u3067\u96c6\u8a08\u3057\u3066\u8fd4\u3059\u3060\u3051\u300d\u3067\u3059\u304c\u3001\u5b9f\u904b\u7528\u306b\u8f09\u305b\u308b\u3068\u300c\u6e2c\u5b9a\u304c\u7121\u3044\u671f\u9593\u3092\u3069\u3046\u6271\u3046\u304b\u300d\u304c\u6700\u5927\u306e\u8a2d\u8a08\u5224\u65ad\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u6b20\u640d\u3092 <code>null<\/code> \u3067\u57cb\u3081\u305f\u9023\u7d9a\u30d0\u30b1\u30c3\u30c8\u3092\u751f\u6210\u3057\u3001\u305d\u3053\u306b\u5b9f\u6e2c\u3092\u5dee\u3057\u8fbc\u3080\u8a2d\u8a08\u3092 Laravel + Carbon \u524d\u63d0\u3067\u307e\u3068\u3081\u307e\u3059\u3002\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u306f\u5225\u30c6\u30fc\u30de\u306a\u306e\u3067\u89e6\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u6982\u8981<\/h2>\n<p>\u5b9f\u88c5\u3067\u52b9\u3044\u3066\u304f\u308b\u306e\u306f\u6b21\u306e3\u70b9\u3067\u3057\u305f\u3002<\/p>\n<ol>\n<li>\u6e2c\u5b9a\u304c\u7121\u3044\u671f\u9593\u3082\u30b0\u30e9\u30d5\u4e0a\u306b\u70b9\uff08\u307e\u305f\u306f\u533a\u9593\uff09\u3068\u3057\u3066\u5b58\u5728\u3055\u305b\u305f\u3044\u3002\u3067\u306a\u3044\u3068\u6298\u308c\u7dda\u304c\u8a70\u307e\u3063\u3066\u6642\u9593\u611f\u899a\u304c\u58ca\u308c\u308b<\/li>\n<li>\u671f\u9593\u7a93\u306b\u3088\u3063\u3066\u30d0\u30b1\u30c3\u30c8\u306e\u610f\u5473\u304c\u5909\u308f\u308b\uff081\u30f6\u6708\uff1d\u65e5\u5358\u4f4d\u30013\u30f6\u6708\uff1d\u5341\u6570\u65e5\u306e\u533a\u9593\u30011\u5e74\uff1d\u6708\u5358\u4f4d\uff09\u306e\u306b\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5f62\u306f1\u7a2e\u985e\u306b\u7d71\u4e00\u3057\u305f\u3044<\/li>\n<li>\u6e2c\u5b9a\u306f\u5229\u7528\u8005\u306e\u751f\u6d3b\u30ea\u30ba\u30e0\u4efb\u305b\u3067\u30d0\u30e9\u30d0\u30e9\u306e\u6642\u523b\u306b\u98db\u3093\u3067\u304f\u308b\u306e\u3067\u3001\u7d20\u76f4\u306b GROUP BY \u3059\u308b\u3068\u6b6f\u629c\u3051\u306b\u306a\u308b<\/li>\n<\/ol>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>PHP 8.1 \/ Laravel 9<\/li>\n<li>MySQL\uff08\u6e2c\u5b9a\u306f1\u884c1\u4ef6\u3067\u84c4\u7a4d\uff09<\/li>\n<li>\u65e5\u4ed8\u51e6\u7406\u306f Carbon \/ CarbonPeriod<\/li>\n<li>Web \u3068 iPad \u30a2\u30d7\u30ea\u306e\u4e21\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08<code>terminal<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u51fa\u3057\u5206\u3051\uff09<\/li>\n<\/ul>\n<h2>\u767a\u751f\u3057\u305f\u554f\u984c<\/h2>\n<p>\u6700\u521d\u306e\u5b9f\u88c5\u306f\u7d20\u6734\u3067\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3: \u5b9f\u6e2c\u306e\u3042\u308b\u671f\u9593\u3057\u304b\u8fd4\u3089\u306a\u3044\n$rows = Measurement::query()\n    -&gt;where('member_id', $memberId)\n    -&gt;whereBetween('measured_at', [$from, $to])\n    -&gt;selectRaw('DATE(measured_at) as d, AVG(value) as v')\n    -&gt;groupBy('d')\n    -&gt;orderByDesc('d')\n    -&gt;get();<\/pre>\n<p>\u3053\u308c\u3060\u3068\u6e2c\u5b9a\u3057\u305f\u65e5\u3057\u304b\u884c\u304c\u8fd4\u308a\u307e\u305b\u3093\u3002\u30d5\u30ed\u30f3\u30c8\u306f\u8fd4\u3063\u3066\u304d\u305f\u70b9\u3092\u7b49\u9593\u9694\u3067\u4e26\u3079\u308b\u305f\u3081\u3001\u300c3\u65e5\u6e2c\u3063\u30662\u9031\u9593\u7a7a\u3051\u3066\u3001\u307e\u305f3\u65e5\u6e2c\u308b\u300d\u3068\u3044\u3046\u30ea\u30ba\u30e0\u304c\u3001\u30b0\u30e9\u30d5\u4e0a\u3067\u306f\u9023\u7d9a6\u70b9\u306b\u6f70\u308c\u307e\u3059\u3002\u6642\u9593\u8ef8\u306e\u7a7a\u767d\u304c\u30b0\u30e9\u30d5\u304b\u3089\u6d88\u3048\u308b\u306e\u304c\u81f4\u547d\u7684\u3067\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u671f\u9593\u7a93\u3092\u5897\u3084\u3059\u305f\u3073\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5f62\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u306a\u308a\u3001\u30d5\u30ed\u30f3\u30c8\u306b\u7a93\u5225\u306e\u5206\u5c90\u304c\u5897\u6b96\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>\u539f\u56e0\u306f\u300c\u30d0\u30b1\u30c3\u30c8\uff08\u6642\u9593\u306e\u5165\u308c\u7269\uff09\u3092\u5148\u306b\u4f5c\u3089\u305a\u3001\u5b9f\u6e2c\u30c7\u30fc\u30bf\u304b\u3089\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u3044\u305f\u300d\u3053\u3068\u306b\u5c3d\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30c7\u30fc\u30bf\u304c\u7121\u3044\u671f\u9593\u306f\u884c\u304c\u5b58\u5728\u3057\u306a\u3044\uff08\uff1d\u6b20\u640d\u304c\u8868\u73fe\u3067\u304d\u306a\u3044\uff09<\/li>\n<li>\u7a93\u3054\u3068\u306b\u30b0\u30eb\u30fc\u30d4\u30f3\u30b0\u30ad\u30fc\uff08\u65e5 \/ \u533a\u9593 \/ \u6708\uff09\u304c\u5909\u308f\u308a\u3001\u5f62\u304c\u63c3\u308f\u306a\u3044<\/li>\n<\/ul>\n<p>\u88cf\u8fd4\u305b\u3070\u3001\u300c\u9023\u7d9a\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u306e\u9aa8\u7d44\u307f\u3092\u7a93\u306e\u5b9a\u7fa9\u304b\u3089\u5148\u306b\u751f\u6210\u3057\u3001\u305d\u3053\u3078\u5b9f\u6e2c\u3092\u5de6\u7d50\u5408\u3059\u308b\u300d\u767a\u60f3\u306b\u5207\u308a\u66ff\u3048\u308c\u3070\u3001\u4e21\u65b9\u3044\u3063\u307a\u3093\u306b\u89e3\u3051\u307e\u3059\u3002<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<h3>1. \u671f\u9593\u7a93\u3092\u300c\u30d0\u30b1\u30c3\u30c8\u306e\u5b9a\u7fa9\u300d\u3068\u3057\u3066\u6301\u3064<\/h3>\n<p>\u7a93\u3054\u3068\u306b\u9055\u3046\u306e\u306f\u7c92\u5ea6\u3060\u3051\u3001\u3068\u6349\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">enum GraphWindow: string\n{\n    case OneMonth   = '1m'; \/\/ \u65e5\u5358\u4f4d\uff08\u70b9\uff09\n    case ThreeMonth = '3m'; \/\/ \u7d0410\u65e5\u533a\u9593\n    case HalfYear   = '6m'; \/\/ \u7d0415\u65e5\u533a\u9593\n    case OneYear    = '1y'; \/\/ \u6708\u5358\u4f4d\n\n    \/** \u30d0\u30b1\u30c3\u30c8\u3092\u65b0\u3057\u3044\u9806\u306b\u8fd4\u3059 *\/\n    public function buckets(CarbonImmutable $now): array\n    {\n        return match ($this) {\n            self::OneMonth   =&gt; $this-&gt;dailyBuckets($now, 31),\n            self::ThreeMonth =&gt; $this-&gt;rangeBuckets($now, days: 10, count: 10),\n            self::HalfYear   =&gt; $this-&gt;rangeBuckets($now, days: 15, count: 13),\n            self::OneYear    =&gt; $this-&gt;monthlyBuckets($now, 12),\n        };\n    }\n}<\/pre>\n<h3>2. \u5f62\u306f\u540c\u3058\u3001section \u306e\u610f\u5473\u3060\u3051\u3092\u5909\u3048\u308b<\/h3>\n<p>\u5404\u30d0\u30b1\u30c3\u30c8\u306f <code>first_section<\/code> \/ <code>second_section<\/code> \/ <code>value<\/code> \u306e3\u3064\u7d44\u3067\u8868\u3057\u307e\u3059\u3002\u5f62\u306f\u540c\u3058\u307e\u307e\u3001\u7a93\u306b\u3088\u3063\u3066 section \u306e\u610f\u5473\u3060\u3051\u3092\u30b9\u30e9\u30a4\u30c9\u3055\u305b\u308b\u306e\u304c\u809d\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7a93<\/th>\n<th>first_section<\/th>\n<th>second_section<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1\u30f6\u6708<\/td>\n<td>\u6e2c\u5b9a\u65e5<\/td>\n<td>\u6e2c\u5b9a\u6642\u523b\uff08\u7121\u3051\u308c\u3070 <code>00:00:00<\/code>\uff09<\/td>\n<td>\u70b9<\/td>\n<\/tr>\n<tr>\n<td>3\u30f6\u6708 \/ \u534a\u5e74<\/td>\n<td>\u533a\u9593\u958b\u59cb\u65e5<\/td>\n<td>\u533a\u9593\u7d42\u4e86\u65e5<\/td>\n<td>\u533a\u9593<\/td>\n<\/tr>\n<tr>\n<td>1\u5e74<\/td>\n<td><code>YYYY-MM<\/code><\/td>\n<td><code>null<\/code><\/td>\n<td>\u6708<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30d5\u30ed\u30f3\u30c8\u306f\u300c3\u3064\u7d44\u3092\u65b0\u3057\u3044\u9806\u306b\u63cf\u304f\u300d\u3060\u3051\u3067\u3088\u304f\u3001\u7a93\u3054\u3068\u306e\u5206\u5c90\u3092\u6301\u305f\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">final class Bucket\n{\n    public function __construct(\n        public readonly CarbonImmutable $start,\n        public readonly CarbonImmutable $end,\n        public readonly string $firstSection,\n        public readonly ?string $secondSection,\n    ) {}\n\n    public function covers(CarbonInterface $at): bool\n    {\n        return $at-&gt;betweenIncluded($this-&gt;start, $this-&gt;end);\n    }\n}<\/pre>\n<h3>3. \u9aa8\u7d44\u307f\u3092\u4f5c\u3063\u3066\u304b\u3089\u5b9f\u6e2c\u3092\u5dee\u3057\u8fbc\u3080<\/h3>\n<p>\u300c\u307e\u305a null \u3067\u57cb\u307e\u3063\u305f\u9023\u7d9a\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u308a\u3001\u5b9f\u6e2c\u3092\u5f8c\u4e57\u305b\u3059\u308b\u300d\u9806\u5e8f\u304c\u3059\u3079\u3066\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">final class GraphAssembler\n{\n    public function assemble(iterable $measurements, array $buckets): array\n    {\n        $slots = array_fill(0, count($buckets), []);\n        foreach ($measurements as $m) {\n            foreach ($buckets as $i =&gt; $bucket) {\n                if ($bucket-&gt;covers($m-&gt;measured_at)) { $slots[$i][] = $m; break; }\n            }\n        }\n\n        return array_map(fn (Bucket $b, array $hits) =&gt; [\n            'first_section'  =&gt; $b-&gt;firstSection,\n            'second_section' =&gt; $b-&gt;secondSection,\n            'value'          =&gt; $this-&gt;representative($hits),\n        ], $buckets, $slots);\n    }\n\n    \/** \u4ee3\u8868\u5024\uff1a\u533a\u9593\u5185\u306f\u300c\u6700\u65b0\u306e1\u4ef6\u300d\u3092\u63a1\u7528 *\/\n    private function representative(array $hits): ?float\n    {\n        if ($hits === []) return null; \/\/ \u6b20\u640d\u306f null \u306e\u307e\u307e\u6b8b\u3059\n        usort($hits, fn ($a, $b) =&gt; $b-&gt;measured_at &lt;=&gt; $a-&gt;measured_at);\n        return round($hits[0]-&gt;value, 2);\n    }\n}<\/pre>\n<p>\u4ee3\u8868\u5024\u3092\u300c\u5e73\u5747\u300d\u306b\u3059\u308b\u304b\u300c\u6700\u65b01\u4ef6\u300d\u306b\u3059\u308b\u304b\u306f\u4ed5\u69d8\u5224\u65ad\u3067\u3059\u3002\u6e2c\u5b9a\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u30d0\u30e9\u3064\u304f\u524d\u63d0\u3060\u3063\u305f\u306e\u3067\u3001\u5e73\u5747\u3088\u308a\u300c\u6700\u5f8c\u306b\u6e2c\u3063\u305f\u5024\u300d\u306e\u65b9\u304c\u4f53\u611f\u306b\u5408\u3044\u307e\u3057\u305f\u3002\u3053\u3053\u306f\u5dee\u3057\u66ff\u3048\u3089\u308c\u308b\u3088\u3046 <code>representative()<\/code> \u306b\u9589\u3058\u8fbc\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>4. \u6307\u6a19\u3054\u3068\u306b\u9aa8\u7d44\u307f\u3092\u4f7f\u3044\u56de\u3057\u3001\u30af\u30a8\u30ea\u306f1\u672c\u306b<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u6307\u6a19\uff08\u4f53\u91cd\u30fbBMI\u2026\uff09\u306e\u914d\u5217\u3067\u3001\u5404\u6307\u6a19\u304c\u540c\u3058\u30d0\u30b1\u30c3\u30c8\u5217\u3092\u6301\u3061\u307e\u3059\u3002\u9aa8\u7d44\u307f\u306f\u7a93\u3054\u3068\u306b1\u56de\u3060\u3051\u751f\u6210\u3057\u3001\u6307\u6a19\u30eb\u30fc\u30d7\u3067\u4f7f\u3044\u56de\u3057\u307e\u3059\u3002DB\u30a2\u30af\u30bb\u30b9\u306f\u671f\u9593\u5168\u4f53\u30671\u56de\u306b\u96c6\u7d04\u3057\u3001\u6307\u6a19\u00d7\u30d0\u30b1\u30c3\u30c8\u3067\u30af\u30a8\u30ea\u3092\u6483\u3061\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:default decode:true\">$now     = CarbonImmutable::now();\n$buckets = $window-&gt;buckets($now);\n$from    = end($buckets)-&gt;start;\n\n$byItem = Measurement::query()\n    -&gt;where('member_id', $memberId)\n    -&gt;whereBetween('measured_at', [$from, $now])\n    -&gt;orderBy('measured_at')\n    -&gt;get()\n    -&gt;groupBy('item_id');<\/pre>\n<h2>\u5b9f\u88c5\u4f8b\uff08\u30ec\u30b9\u30dd\u30f3\u30b9\uff09<\/h2>\n<p>1\u5e74\u7a93\u306e1\u6307\u6a19\u3076\u3093\u3002<code>second_section<\/code> \u304c <code>null<\/code>\u3001\u5b9f\u6e2c\u304c\u7121\u3044\u6708\u306f <code>value: null<\/code> \u3067\u9023\u7d9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true\">{\n  \"title\": \"\u4f53\u91cd\",\n  \"meas_body_comp_item_id\": 1,\n  \"sort_number\": 1,\n  \"target\": 78.88,\n  \"initial\": 109.84,\n  \"measures\": [\n    { \"first_section\": \"2021-12\", \"second_section\": null, \"value\": 73.9 },\n    { \"first_section\": \"2021-11\", \"second_section\": null, \"value\": null },\n    { \"first_section\": \"2021-10\", \"second_section\": null, \"value\": null }\n  ]\n}<\/pre>\n<p>3\u30f6\u6708\u7a93\u306a\u3089\u540c\u3058\u5f62\u306e\u307e\u307e <code>second_section<\/code> \u304c\u533a\u9593\u7d42\u4e86\u65e5\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h2>\u78ba\u8a8d\u65b9\u6cd5<\/h2>\n<ol>\n<li>\u6b20\u640d\u306e\u9023\u7d9a\u6027\uff1a\u6e2c\u5b9a\u30921\u4ef6\u3060\u3051\u5165\u308c\u3066\u5404\u7a93\u3092\u53e9\u304d\u3001<code>measures<\/code> \u306e\u4ef6\u6570\u304c\u7a93\u306e\u5b9a\u7fa9\u3069\u304a\u308a\uff081\u5e74=12 \u306a\u3069\uff09\u306b\u56fa\u5b9a\u3055\u308c\u3001\u5b9f\u6e2c\u4ee5\u5916\u304c\u5168\u90e8 <code>null<\/code> \u3067\u3042\u308b\u3053\u3068<\/li>\n<li>\u5883\u754c\uff1a\u30d0\u30b1\u30c3\u30c8\u5883\u754c\u3061\u3087\u3046\u3069\u306e\u6e2c\u5b9a\u304c\u300c\u7247\u65b9\u306e\u30d0\u30b1\u30c3\u30c8\u306b\u3060\u3051\u300d\u5165\u308b\u3053\u3068\uff08\u4e21\u7aef\u91cd\u8907\u306b\u6ce8\u610f\uff09<\/li>\n<li>\u4e26\u3073\u9806\uff1a\u5e38\u306b\u65b0\u3057\u3044\u9806<\/li>\n<li>\u30af\u30a8\u30ea\u6570\uff1a<code>DB::listen()<\/code> \u3067\u767a\u884c\u304c1\u672c\u306e\u307e\u307e\u3067\u3042\u308b\u3053\u3068<\/li>\n<\/ol>\n<pre class=\"lang:default decode:true\">public function test_\u6b63\u5e38\u7cfb_assemble_\u5b9f\u6e2c\u304c\u7121\u3044\u6708\u306fnull\u3067\u9023\u7d9a\u3057\u3066\u8fd4\u308b(): void\n{\n    $buckets  = GraphWindow::OneYear-&gt;buckets(CarbonImmutable::parse('2021-12-23'));\n    $measures = (new GraphAssembler)-&gt;assemble(\n        collect([new Measurement(measured_at: '2021-12-05', value: 73.9)]),\n        $buckets,\n    );\n\n    $this-&gt;assertCount(12, $measures);\n    $this-&gt;assertSame(73.9, $measures[0]['value']);\n    $this-&gt;assertNull($measures[1]['value']);\n}<\/pre>\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\uff1a\u30d0\u30b1\u30c3\u30c8\u5883\u754c\u306f\u5fc5\u305a\u300c\u96c6\u8a08\u306b\u4f7f\u3046\u57fa\u6e96TZ\u300d\u3067\u5207\u308b\u3002UTC\u4fdd\u5b58\u2192JST\u57fa\u6e96\u306e\u30ba\u30ec\u304c\u5883\u754c\u306e\u6e2c\u5b9a\u3092\u96a3\u306b\u62bc\u3057\u8fbc\u3080<\/li>\n<li>\u4ee3\u8868\u5024\u306e\u4ed5\u69d8\u306f\u5148\u306b\u63e1\u308b\uff1a\u5e73\u5747 \/ \u6700\u65b0 \/ \u6700\u5927\u3067\u898b\u3048\u65b9\u304c\u5909\u308f\u308b\u3002\u5f8c\u304b\u3089\u5909\u3048\u308b\u3068\u300c\u30b0\u30e9\u30d5\u304c\u5909\u308f\u3063\u305f\u300d\u3068\u30d0\u30b0\u5831\u544a\u306b\u306a\u308b<\/li>\n<li><code>null<\/code> \u3092 0 \u306b\u4e38\u3081\u306a\u3044\uff1a\u300c\u6e2c\u3063\u3066\u3044\u306a\u3044\u300d\u3068\u300c0\u300d\u306f\u5225\u7269\u3002\u6298\u308c\u7dda\u306f null \u3067\u7dda\u3092\u5207\u308b\u306e\u304c\u6b63\u3057\u3044<\/li>\n<li>section \u306e\u591a\u7fa9\u6027\u3092\u5897\u3084\u3057\u3059\u304e\u306a\u3044\uff1a2\u301c3\u30d1\u30bf\u30fc\u30f3\u304c\u9650\u754c\u3002\u305d\u308c\u4ee5\u4e0a\u306f\u7d20\u76f4\u306b\u578b\u3092\u5206\u3051\u308b<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u671f\u9593\u5225\u30b0\u30e9\u30d5API\u306f\u3001\u30d0\u30b1\u30c3\u30c8\u3092\u5b9f\u6e2c\u304b\u3089\u4f5c\u3089\u305a\u3001\u7a93\u306e\u5b9a\u7fa9\u304b\u3089\u5148\u306b\u751f\u6210\u3057\u3066\u5b9f\u6e2c\u3092\u5de6\u7d50\u5408\u3059\u308b\u2014\u2014\u3053\u306e\u9806\u5e8f\u3092\u5b88\u308b\u3060\u3051\u3067\u300c\u6b20\u640d\u30bc\u30ed\u300d\u300c\u30ec\u30b9\u30dd\u30f3\u30b9\u5f62\u306e\u7d71\u4e00\u300d\u300c\u30af\u30a8\u30ea1\u672c\u300d\u304c\u540c\u6642\u306b\u624b\u306b\u5165\u308a\u307e\u3059\u3002GROUP BY \u8d77\u70b9\u3067\u6b6f\u629c\u3051\u3068\u7a93\u5225\u5206\u5c90\u306b\u82e6\u3057\u3093\u3067\u3044\u308b\u306a\u3089\u3001\u9aa8\u7d44\u307f\u5148\u884c\u3078\u306e\u5207\u308a\u66ff\u3048\u3092\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a08\u6e2c\u6a5f\u5668\u5411\u3051\u306eSaaS\u6848\u4ef6\u3067\u3001\u6e2c\u5b9a\u5024\u306e\u63a8\u79fb\u3092\u300c1\u30f6\u6708 \/ 3\u30f6\u6708 \/ \u534a\u5e74 \/ 1\u5e74\u300d\u3067\u5207\u308a\u66ff\u3048\u308b\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u306eAPI\u3092\u62c5\u5f53\u3057\u307e\u3057\u305f\u3002\u4e00\u898b\u300c\u671f\u9593\u3067\u96c6\u8a08\u3057\u3066\u8fd4\u3059\u3060\u3051\u300d\u3067\u3059\u304c\u3001\u5b9f\u904b\u7528\u306b\u8f09\u305b\u308b\u3068\u300c\u6e2c\u5b9a\u304c\u7121\u3044\u671f\u9593\u3092\u3069\u3046\u6271\u3046\u304b\u300d\u304c\u6700\u5927\u306e\u8a2d\u8a08\u5224\u65ad\u306b\u306a\u308a\u2026<\/p>\n","protected":false},"author":1,"featured_media":3385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[34],"tags":[64,153,424,472],"class_list":["post-3386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-memorandum","tag-api","tag-laravel","tag-424","tag-472"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2026\/09\/20260908-00mtrwuj-thumbnail.jpg","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=3386"}],"version-history":[{"count":1,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3386\/revisions"}],"predecessor-version":[{"id":3387,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3386\/revisions\/3387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/3385"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=3386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=3386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=3386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}