{"categories":[],"author_name":"kojirooooocks","height":"190","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/kojirooooocks/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkojirooooocks.hatenablog.com%2Fentry%2F2023%2F07%2F15%2F040000\" title=\"\u7ba1\u7406\u753b\u9762\u7528\u30fb\u30d5\u30ed\u30f3\u30c8\u7528\u306bInertia\u306e\u30eb\u30fc\u30c8\u3092\u5206\u3051\u308b - \u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://kojirooooocks.hatenablog.com/","image_url":null,"width":"100%","description":"\u306f\u3058\u3081\u306b \u3053\u3093\u3070\u3093\u306f\u3002 Laravel\u3067\u4f7f\u3046Inertia\u3067\u7ba1\u7406\u753b\u9762\u7528\u30fb\u30d5\u30ed\u30f3\u30c8\u7528\u3067\u30eb\u30fc\u30c8\u3092\u5206\u3051\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3057\u3066\u3001\u8abf\u3079\u3066\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002 \u3081\u3063\u3061\u3083\u7c21\u5358\u3067\u3059\u304c\u3001\u5099\u5fd8\u9332\u3067\u3059\u3002 \u672c\u984c \u5bfe\u5fdc\u3059\u308b\u306e\u306f\u3001Middleware\u306e HandleInertiaRequests \u3067\u3059\u3002 public function rootView(Request $request): string { if ($request->route()->getPrefix() === 'admin') { // admin root return 'admin_app'; } return $this->rootView; } \u3053\u2026","url":"https://kojirooooocks.hatenablog.com/entry/2023/07/15/040000","title":"\u7ba1\u7406\u753b\u9762\u7528\u30fb\u30d5\u30ed\u30f3\u30c8\u7528\u306bInertia\u306e\u30eb\u30fc\u30c8\u3092\u5206\u3051\u308b","published":"2023-07-15 04:00:00","blog_title":"\u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38"}