{"id":39883,"date":"2022-12-13T00:19:21","date_gmt":"2022-12-12T15:19:21","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=39883&#038;preview=true&#038;preview_id=39883"},"modified":"2023-08-25T22:29:45","modified_gmt":"2023-08-25T13:29:45","slug":"laravel-inertia","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/","title":{"rendered":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u8fd1\u5e74\u3001\u30de\u30eb\u30c1\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08MPA\uff09\u306e\u4eba\u6c17\u306f\u4e0b\u706b\u50be\u5411\u306b\u3042\u308a\u3001Facebook\u3001Twitter\u3001YouTube\u3001Github\u306a\u3069\u306e\u5927\u624b\u30b5\u30fc\u30d3\u30b9\u306f\u3059\u3067\u306b\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08SPA\uff09\u6280\u8853\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>SPA\u306f\u4eca\u6d41\u884c\u308a\u306e\u6280\u8853\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u3059\u3079\u3066\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9ad8\u901f\u304b\u3064\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306b\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u4e00\u65b9\u3067\u3001Laravel\u3084Django\u306e\u3088\u3046\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\uff08SSR\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u3066\u304d\u305f\u958b\u767a\u8005\u306e\u4e2d\u306b\u306f\u3001\u3053\u306e\u6d41\u308c\u3092\u597d\u307e\u3057\u304f\u601d\u308f\u306a\u3044\u4eba\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001Inertia.js\u304c\u767b\u5834\u3057\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u3053\u3046\u3057\u305f\u72b6\u6cc1\u306f\u4e00\u5909\u3057\u307e\u3057\u305f\u3002<\/p>\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Inertia.js\u306e\u57fa\u790e\u3092\u3054\u8aac\u660e\u3057\u3001Laravel\u3001Vue.js\u3001Tailwind CSS\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u30e2\u30c0\u30f3\u306a\u30d6\u30ed\u30b0\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305f\u3001SPA\u306eSEO\u3092\u5411\u4e0a\u3059\u308b\u30d2\u30f3\u30c8\u3082\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001Laravel\u3092\u4f7f\u3044\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u65b9\u306f\u3001\u307e\u305a<a href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-developer\/\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>SPA\u304c\u6ce8\u76ee\u3055\u308c\u308b\u7406\u7531<\/h2>\n<p>Inertia\u3092\u4f7f\u7528\u3059\u308b\u3079\u304d\u7406\u7531\u3092\u8003\u3048\u308b\u524d\u306b\u3001\u307e\u305a\u306fSPA\u306e\u4eba\u6c17\u306e\u79d8\u5bc6\u306b\u3064\u3044\u3066\u89e6\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u5f93\u6765\u306e\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3088\u308a\u3082\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u597d\u307e\u308c\u308b\u306e\u306f\u306a\u305c\u3067\u3057\u3087\u3046\u304b\u3002\u305d\u3057\u3066\u3001Laravel\u306e\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u958b\u767a\u8005\u304c\u3001<a href=\"https:\/\/kinsta.com\/blog\/what-is-laravel\/#templating\">Blade\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/a>\u306b\u5225\u308c\u3092\u544a\u3052\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u7406\u7531\u3068\u306f\u3002<\/p>\n<p>\u7c21\u5358\u306b\u8a00\u3048\u3070\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u95a2\u4fc2\u6027\u3092\u6df1\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u30b9\u30d4\u30fc\u30c9\u3068\u5fdc\u7b54\u6027\u304c\u91cd\u8981\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>MPA\u306e\u5834\u5408\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u5e38\u306b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u591a\u6570\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30af\u30a8\u30ea\u306f\u30c6\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30b5\u30fc\u30d0\u30fc\u306b\u51e6\u7406\u3055\u308c\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u9001\u4fe1\u3055\u308c\u305f\u5f8c\u3001\u30da\u30fc\u30b8\u304c\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304cSPA\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u76f4\u63a5\u30da\u30fc\u30b8\u306b\u8aad\u307f\u8fbc\u3080\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u30af\u30a8\u30ea\u3092\u9001\u4fe1\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u307e\u305f\u65b0\u305f\u306aHTML\u8981\u7d20\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306b\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u683c\u6bb5\u306b\u5411\u4e0a\u3055\u305b\u308b\u5229\u4fbf\u6027\u3092\u7406\u7531\u306b\u3001\u591a\u304f\u306e\u5927\u4f01\u696d\u304c\u81ea\u793e\u30b5\u30a4\u30c8\u306e\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5316\u3092\u63a8\u9032\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Laravel\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u306f\u975e\u5e38\u306b\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002\u3068\u8a00\u3046\u306e\u3082\u3001Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4ee3\u308f\u308a\u306bVue.js\u3084React\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u6642\u9593\u3068\u52b4\u529b\u3092\u524a\u6e1b\u3067\u304d\u308b\u591a\u304f\u306eLaravel\u30a2\u30bb\u30c3\u30c8\u3092\u624b\u653e\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u72b6\u6cc1\u3092\u6253\u7834\u3059\u308b\u305f\u3081\u306b\u767b\u5834\u3057\u305f\u306e\u304c\u3001Inertia.js\u3067\u3059\u3002<\/p>\n<h2>Inertia\u304c\u512a\u308c\u3066\u3044\u308b\u7406\u7531<\/h2>\n<p>Inertia\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u307e\u3067\u306f\u3001Laravel\u958b\u767a\u8005\u304cVue\u3067\u30a6\u30a7\u30d6SPA\u3092\u958b\u767a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001Laravel\u3067API\u3092\u8a2d\u5b9a\u3057\u3066JSON\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u3001AXIOS\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u4f7f\u7528\u3057\u3066\u3001Vue\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3055\u3089\u306b\u3001\u30eb\u30fc\u30c8\u306e\u7ba1\u7406\u306b\u306fVue Router\u306a\u3069\u304c\u5fc5\u8981\u306b\u306a\u308a\u3001Laravel\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3084\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u540c\u69d8\u3001\u7121\u7528\u306e\u9577\u7269\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001Inertia.js\u3067\u306f\u3001\u5f93\u6765\u306e\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c0\u30f3\u306a\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8Vue\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/svelte-vs-react\/\">React\u3001Svelte<\/a>\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Inertia\u306fLaravel\u3001Ruby on Rails\u3001Django\u958b\u767a\u8005\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u4f5c\u6210\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3001\u30d3\u30e5\u30fc\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306a\u3069\u3001\u30a2\u30d7\u30ea\u306e\u69cb\u7bc9\u306b\u5f93\u6765\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6280\u8853\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Inertia.js\u3092\u4f7f\u3048\u3070\u3001Laravel\u958b\u767a\u8005\u306f\u3053\u308c\u307e\u3067\u901a\u308a\u4f5c\u696d\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\n<h2>Inertia\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>Laravel\u3068Vue\u3060\u3051\u3067SPA\u3092\u69cb\u7bc9\u3059\u308b\u3068\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306fJavaScript\u306e\u307f\u3092\u4f7f\u7528\u3057\u305f\u30da\u30fc\u30b8\u3068\u306a\u308a\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306e\u64cd\u4f5c\u6027\u306f\u5f97\u3089\u308c\u307e\u305b\u3093\u3002\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u305f\u3073\u306b\u3001\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u306b\u3088\u3063\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u518d\u8d77\u52d5\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001Inertia\u306e\u51fa\u756a\u3067\u3059\u3002<\/p>\n<p>Inertia\u306f\u3001\u57fa\u672c\u7684\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u30da\u30fc\u30b8\u5168\u4f53\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30da\u30fc\u30b8\u3092\u79fb\u52d5\u3067\u304d\u307e\u3059\u3002\u79fb\u52d5\u306f\u6a19\u6e96\u7684\u306a\u30a2\u30f3\u30ab\u30fc\u30bf\u30b0\u306e\u8efd\u91cf\u30e9\u30c3\u30d1\u30fc\u3001<code>&lt;Link&gt;<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>Inertia\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Inertia\u304c\u305d\u306e\u30af\u30ea\u30c3\u30af\u3092\u906e\u65ad\u3057\u3001XHR\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30da\u30fc\u30b8\u304c\u518d\u8aad\u307f\u8fbc\u307f\u3055\u308c\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308a\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3068\u3057\u3066\u306e\u6319\u52d5\u304c\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Inertia\u5165\u9580<\/h2>\n<figure id=\"attachment_134651\" aria-describedby=\"caption-attachment-134651\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134651 size-large\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/kinsta-laravel-inertiajs-tutorial-1024x640.png\" alt=\"Inertia.js\u3067\u4f5c\u6210\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\" width=\"1024\" height=\"640\"><figcaption id=\"caption-attachment-134651\" class=\"wp-caption-text\">Inertia.js\u3067\u4f5c\u6210\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8<\/figcaption><\/figure>\n<p>\u4f8b\u3068\u3057\u3066\u3001\u30d6\u30ed\u30b0\u30a2\u30d7\u30ea\u300c<strong>Kinsta Blog<\/strong>\u300d\u3092\u69cb\u7bc9\u3057\u306a\u304c\u3089\u3001Inertia\u3068Laravel\u3068\u306e\u7d71\u5408\u65b9\u6cd5\u3092\u3054\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306bLaravel\u3001JavaScript\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306bVue.js\u3001\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306bTailwind CSS\u3068\u3044\u3046\u7d44\u307f\u5408\u308f\u305b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/\">DevKinsta<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3059\u308b\u624b\u9806\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u5b9f\u969b\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002DevKinsta\u306f\u3001\u958b\u767a\u8005\u3001\u30c7\u30b6\u30a4\u30ca\u30fc\u3001\u4ee3\u884c\u696d\u8005\u5411\u3051\u306e\u9ad8\u6a5f\u80fd\u30c4\u30fc\u30eb\u3067\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u304a\u3088\u3073\u30de\u30eb\u30c1\u30da\u30fc\u30b8\u306eWordPress\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002WordPress\u306f\u3001<a href=\"https:\/\/github.com\/corcel\/corcel\">Corcel<\/a>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066Laravel\u3068\u7c21\u5358\u306b\u7d71\u5408\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3059\u308b\u64cd\u4f5c\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u77e5\u8b58\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Laravel\u306e\u57fa\u790e\u77e5\u8b58\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3001Eloquent\u30e2\u30c7\u30eb\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\uff09<\/li>\n<li>js\u306e\u57fa\u790e\u77e5\u8b58\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u69cb\u9020\u3001\u30d5\u30a9\u30fc\u30e0\uff09<\/li>\n<\/ul>\n<p>\u4e0d\u5b89\u304c\u6b8b\u308b\u65b9\u306f\u3001<a href=\"https:\/\/kinsta.com\/blog\/laravel-tutorial\/\">Laravel\u306e\u5b66\u7fd2\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\u6709\u6599\u30fb\u7121\u6599\uff09<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30b9\u30c6\u30c3\u30d71. \u4e3b\u8981\u306a\u8981\u7d20\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4eca\u56de\u306f\u3042\u304f\u307e\u3067Inertia.js\u306e\u4f7f\u7528\u65b9\u6cd5\u304c\u4e3b\u984c\u306b\u306a\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u3066\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u65b0\u898f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fLaravel 9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<code>kinsta-blog<\/code><\/li>\n<li>Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fTailwind CSS CLI<\/li>\n<li>\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u300ckinsta-logo.png\u300d\uff08<a href=\"https:\/\/kinsta.com\/jp\/press\/\">https:\/\/kinsta.com\/press\/<\/a>\u304b\u3089Kinsta logo pack\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3057\u3001kinsta-logo2.png\u3092public\/images\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bkinsta-log.png\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/li>\n<li>\u4ee5\u4e0b\u3001<strong>kinsta-blog\/resources\/views<\/strong>\u5185\u306b\u4f5c\u6210\u3057\u305f\u3001\u30d6\u30ed\u30b0\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u8868\u793a\u7528\u3068\u8a18\u4e8b\u8868\u793a\u7528\u306e2\u3064\u306eBlade\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\/resources\/views\/<strong>index.blade.php<\/strong>\n<pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"{{ str_replace('_', '-', app()-&gt;getLocale()) }}\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"utf-8\" \/&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \/&gt;\n\n    &lt;title&gt;Kinsta Blog&lt;\/title&gt;\n  &lt;\/head&gt;\n\n  &lt;body&gt;\n    &lt;header&gt;\n      &lt;h1&gt;Kinsta Blog&lt;\/h1&gt;\n    &lt;\/header&gt;\n\n    &lt;main&gt;\n      &lt;h2&gt;Read our latest articles&lt;\/h2&gt;\n\n      &lt;section&gt;\n        &lt;article&gt;\n          &lt;div&gt;\n            &lt;img src=\"\/images\/kinsta-logo.png\" alt=\"Article thumbnail\" \/&gt;\n          &lt;\/div&gt;\n\n          &lt;h3&gt;Title for the blog&lt;\/h3&gt;\n          &lt;p&gt;\n            Lorem, ipsum dolor sit amet consectetur adipisicing elit. Illum rem\n            itaque error vel perferendis aliquam numquam dignissimos, expedita\n            perspiciatis consectetur!\n          &lt;\/p&gt;\n\n          &lt;a href=\"#\"&gt;Read more&lt;\/a&gt;\n        &lt;\/article&gt;\n      &lt;\/section&gt;\n    &lt;\/main&gt;\n\n    &lt;footer&gt;\n      &lt;h2&gt;Join our Newsletter&lt;\/h2&gt;\n\n      &lt;input type=\"email\" \/&gt;\n    &lt;\/footer&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p>\/resources\/views\/<strong>show.blade.php<\/strong>:<\/p>\n<pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"{{ str_replace('_', '-', app()-&gt;getLocale()) }}\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"utf-8\" \/&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \/&gt;\n\n    &lt;title&gt;Kinsta Blog&lt;\/title&gt;\n  &lt;\/head&gt;\n\n  &lt;body&gt;\n    &lt;main&gt;\n      &lt;article&gt;\n        &lt;div&gt;\n          &lt;img src=\"\/images\/kinsta-logo.png\" alt=\"Article thumbnail\" \/&gt;\n        &lt;\/div&gt;\n\n        &lt;h1&gt;Title for the blog&lt;\/h1&gt;\n\n        &lt;p&gt;Article content goes here&lt;\/p&gt;\n      &lt;\/article&gt;\n    &lt;\/main&gt;\n\n    &lt;footer&gt;\n      &lt;h2&gt;Join our Newsletter&lt;\/h2&gt;\n\n      &lt;input type=\"email\" \/&gt;\n    &lt;\/footer&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<\/li>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u63a5\u7d9a\u3055\u308c\u305f\u3001MySQL\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<code>kinsta_blog<\/code> <strong>.env<\/strong>\n<pre><code class=\"language-js\">DB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=kinsta_blog\nDB_USERNAME=root\nDB_PASSWORD=<\/code><\/pre>\n<\/li>\n<li>\u8a18\u4e8b\uff08Article\uff09\u306e\u30e2\u30c7\u30eb\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3001\u30d5\u30a1\u30af\u30c8\u30eaapp\/Models\/<strong>Article.php<\/strong>\n<pre><code class=\"language-php\">&lt;?php\n\nnamespace AppModels;\n\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Article extends Model\n{\n    use HasFactory;\n\n    protected $fillable = ['title', 'excerpt', 'body'];\n}<\/code><\/pre>\n<p>database\/migrations\/<strong>create_articles_table.php<\/strong><\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n\n    public function up()\n    {\n        Schema::create('articles', function (Blueprint $table) {\n            $table-&gt;id();\n            $table-&gt;string('title');\n            $table-&gt;text('excerpt');\n            $table-&gt;text('body');\n            $table-&gt;timestamps();\n        });\n    }\n\n    public function down()\n    {\n        Schema::dropIfExists('articles');\n    }\n};<\/code><\/pre>\n<p>database\/factories\/<strong>ArticleFactory.php<\/strong><\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nnamespace DatabaseFactories;\n\nuse Illuminate\\Database\\Eloquent\\Factories\\Factory;\n\nclass ArticleFactory extends Factory\n{\n\n    public function definition()\n    {\n        return [\n            'title' =&gt; $this-&gt;faker-&gt;sentence(6),\n            'excerpt' =&gt; $this-&gt;faker-&gt;paragraph(4),\n            'body' =&gt; $this-&gt;faker-&gt;paragraph(15),\n        ];\n    }\n}<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3092\u7528\u610f\u3057\u305f\u3089\u3001\u65e9\u901fInertia.js\u3092\u5c0e\u5165\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30b9\u30c6\u30c3\u30d72. Inertia\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Inertia\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u306f\u3001\u5927\u304d\u304f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\uff08Laravel\uff09\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\uff08VueJs\uff09\u306e2\u6bb5\u968e\u306b\u5206\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/vitejs.dev\/guide\/#scaffolding-your-first-vite-project\">Laravel9\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067Vite\u3092\u4f7f\u7528<\/a>\u3059\u308b\u305f\u3081\u3001Inertia\u306e\u516c\u5f0f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u5c11\u3057\u53e4\u3044\u3082\u306e\u3067\u3059\u304c\u3001\u4f75\u305b\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>1. \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9<\/h4>\n<p>\u307e\u305a\u6700\u521d\u306bInertia\u306e\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306eComposer\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">composer require inertiajs\/inertia-laravel<\/code><\/pre>\n<p>\u6b21\u306b\u30eb\u30fc\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u30eb\u30fc\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001CSS\u3068JS\u30d5\u30a1\u30a4\u30eb\u306e\u30ed\u30fc\u30c9\u306b\u4f7f\u7528\u3055\u308c\u308b\u5358\u4e00\u306eBrade\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u307e\u305fJavaScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8d77\u52d5\u306b\u4f7f\u7528\u3055\u308c\u308bInertia\u30eb\u30fc\u30c8\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u57f7\u7b46\u6642\u70b9\u3067\u6700\u65b0\u7248\u306eLaravel 9 v9.3.1\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001Vite\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002\/resources\/views\/<strong>app.blade.php<\/strong>\u306e\u30bf\u30b0\u5185\u306bVite\u3092\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"{{ str_replace('_', '-', app()-&gt;getLocale()) }}\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"utf-8\" \/&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \/&gt;\n\n    &lt;!-- Fetch project name dynamically --&gt;\n    &lt;title inertia&gt;{{ config('app.name', 'Laravel') }}&lt;\/title&gt;\n\n    &lt;!-- Scripts --&gt;\n    @vite('resources\/js\/app.js') @inertiaHead\n  &lt;\/head&gt;\n\n  &lt;body class=\"font-sans antialiased\"&gt;\n    @inertia\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p><code>&lt;title&gt;<\/code>\u30bf\u30b0\u306b<code>inertia<\/code>\u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u52d5\u7684\u306b\u53d6\u5f97\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f&lt;head&gt;\u306b\u3001<code>@vite<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u633f\u5165\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u3001Vite\u306f\u30a2\u30d7\u30ea\u3092\u5b9f\u88c5\u3057CSS\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305fJavaScript\u30e1\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u691c\u77e5\u3067\u304d\u307e\u3059\u3002Vite\u306f\u3001JavaScript\u3068CSS\u306e\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306e\u958b\u767a\u4e2d\u306b\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u5909\u66f4\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b<strong>HandleInertiaRequests<\/strong>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u4f5c\u6210\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u516c\u958b\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001\u4ee5\u4e0b\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan inertia:middleware<\/code><\/pre>\n<p>\u5b8c\u4e86\u3057\u305f\u3089\u3001app\/Http\/<strong>Kernel.php<\/strong>\u3092\u958b\u304d\u3001\u30a6\u30a7\u30d6\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u6700\u5f8c\u306e\u9805\u76ee\u3068\u3057\u3066<code>HandleInertiaRequests<\/code>\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">'web' =&gt; [\n    \/\/ ...\n    App\\Http\\Middleware\\HandleInertiaRequests::class,\n],<\/code><\/pre>\n<h4>2. \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9<\/h4>\n<p>\u6b21\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306eVue.js 3\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install @inertiajs\/inertia @inertiajs\/inertia-vue3\n\/\/ or\nyarn add @inertiajs\/inertia @inertiajs\/inertia-vue3<\/code><\/pre>\n<p>\u7d9a\u3044\u3066Vue.js 3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install vue@next<\/code><\/pre>\n<p>\u30e1\u30a4\u30f3\u306eJavaScript\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3001Vue.js 3\u3001Vite\u3001Laravel\u3067Inertia.js\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>resources\/js\/<strong>app.js<\/strong><\/p>\n<pre><code class=\"language-js\">import \".\/bootstrap\";\nimport \"..\/css\/app.css\";\n\nimport { createApp, h } from \"vue\";\nimport { createInertiaApp } from \"@inertiajs\/inertia-vue3\";\nimport { resolvePageComponent } from \"laravel-vite-plugin\/inertia-helpers\";\n\ncreateInertiaApp({\n  title: (title) =&gt; `${title} - ${appName}`,\n  resolve: (name) =&gt;\n    resolvePageComponent(\n      `.\/Pages\/${name}.vue`,\n      import.meta.glob(\".\/Pages\/**\/*.vue\")\n    ),\n  setup({ el, app, props, plugin }) {\n    return createApp({ render: () =&gt; h(app, props) })\n      .use(plugin)\n      .mount(el);\n  },\n});<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001Laravel\u306e\u30d7\u30e9\u30b0\u30a4\u30f3<code>resolvePageComponent<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<strong>.\/Pages\/$name.vue<\/strong>\u304b\u3089\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u89e3\u6c7a\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u5f8c\u307b\u3069\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bInertia\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3088\u3063\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u81ea\u52d5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001<code>vitejs\/plugin-vue<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm i @vitejs\/plugin-vue<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001<strong>vite.config.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { defineConfig } from \"vite\";\nimport laravel from \"laravel-vite-plugin\";\nimport vue from \"@vitejs\/plugin-vue\";\n\nexport default defineConfig({\n  plugins: [\n    laravel({\n      input: [\"resources\/css\/app.css\", \"resources\/js\/app.js\"],\n      refresh: true,\n    }),\n    vue({\n      template: {\n        transformAssetUrls: {\n          base: null,\n          includeAbsolute: false,\n        },\n      },\n    }),\n  ],\n});<\/code><\/pre>\n<p>\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install\n\nnpm run dev<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001Vue.js 3\u3068Vite\u3092\u4f7f\u7528\u3057\u305fLaravel 9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002\u6b21\u306f\u52d5\u4f5c\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Inertia\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/h2>\n<p>\u30b9\u30c6\u30c3\u30d71\u306e\u5192\u982d\u3067\u3001\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3068\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b2\u3064\u306eBlade\u30d5\u30a1\u30a4\u30eb\uff08<strong>index<\/strong>\u3068<strong>show<\/strong>\uff09\u306b\u3064\u3044\u3066\u89e6\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>Inertia\u306e\u4f7f\u7528\u4e2d\u306b\u5fc5\u8981\u306aBlade\u30d5\u30a1\u30a4\u30eb\u306f<strong>app.blade.php<\/strong>\u3060\u3051\u3067\u3059\u304c\u3001\u3059\u3067\u306b\u4e00\u5ea6Inertia\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3067\u306f\u3053\u306e2\u3064\u306eBlade\u30d5\u30a1\u30a4\u30eb\u306f\u3069\u3046\u306a\u308b\u306e\u304b\u3068\u7591\u554f\u3092\u62b1\u3044\u3066\u3044\u308b\u65b9\u3082\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e2\u3064\u306eBlade\u30d5\u30a1\u30a4\u30eb\u306f\u3001blade\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089Inertia.js\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<p>Inertia\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5404\u30da\u30fc\u30b8\u306b\u306f\u3001\u81ea\u8eab\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068JavaScript\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3042\u308a\u3001API\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u30da\u30fc\u30b8\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306e\u307f\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Inertia\u30da\u30fc\u30b8\u306fJavaScript\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u3053\u306e\u4f8b\u3067\u306fVue.js\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002\u7279\u5225\u306a\u70b9\u306f\u7279\u306b\u306a\u3044\u305f\u3081\u3001HTML\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u3059\u3079\u3066<code>&lt;template&gt;<\/code>\u30bf\u30b0\u3067\u56f2\u307f\u3001JavaScript\u95a2\u9023\u306f\u3059\u3079\u3066<code>&lt;script&gt;<\/code>\u30bf\u30b0\u3067\u56f2\u307f\u307e\u3059\u3002<\/p>\n<p>\u300cPages\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\u3001\u3064\u307e\u308a<strong>.\/resources\/js\/Pages<\/strong>\u5185\u306b\u3001<strong>index.blade.php<\/strong>\u3068<strong>show.blade.php<\/strong>\u3092\u79fb\u52d5\u3057\u307e\u3059\u3002\u6b21\u306b\u30d5\u30a1\u30a4\u30eb\u62e1\u5f35\u5b50\u3092\u300c.blade.php\u300d\u304b\u3089\u300c.vue\u300d\u306b\u5909\u66f4\u3057\u3001\u540d\u524d\u306e\u6700\u521d\u306e\u6587\u5b57\u3092\u5927\u6587\u5b57\u306b\u3057\u3066\u3001\u4e2d\u8eab\u3092\u6a19\u6e96\u306eVue.js\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002<code>&lt;html&gt;<\/code>\u3001<code>&lt;head&gt;<\/code>\u3001<code>&lt;body&gt;<\/code>\u30bf\u30b0\u306f\u3001\u30e1\u30a4\u30f3\u30eb\u30fc\u30c8\u306eblade\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3059\u3067\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n<p>resources\/js\/Pages\/<strong>Index.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\n  \/\/\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;header&gt;\n    &lt;h1&gt;Kinsta Blog&lt;\/h1&gt;\n  &lt;\/header&gt;\n\n  &lt;main&gt;\n    &lt;h2&gt;Read our latest articles&lt;\/h2&gt;\n\n    &lt;section&gt;\n      &lt;article&gt;\n        &lt;div&gt;\n          &lt;img src=\"\/images\/kinsta-logo.png\" alt=\"Article thumbnail\" \/&gt;\n        &lt;\/div&gt;\n\n        &lt;h3&gt;Title for the blog&lt;\/h3&gt;\n        &lt;p&gt;\n          Lorem, ipsum dolor sit amet consectetur adipisicing elit. Illum rem\n          itaque error vel perferendis aliquam numquam dignissimos, expedita\n          perspiciatis consectetur!\n        &lt;\/p&gt;\n\n        &lt;a href=\"#\"&gt;Read more&lt;\/a&gt;\n      &lt;\/article&gt;\n    &lt;\/section&gt;\n  &lt;\/main&gt;\n\n  &lt;footer&gt;\n    &lt;h2&gt;Join our Newsletter&lt;\/h2&gt;\n\n    &lt;input type=\"email\" \/&gt;\n  &lt;\/footer&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>resources\/js\/Pages\/<strong>Show.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\n  \/\/\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;header&gt;\n    &lt;h1&gt;Welcome to Kinsta Blog&lt;\/h1&gt;\n  &lt;\/header&gt;\n\n  &lt;main&gt;\n    &lt;article&gt;\n      &lt;h1&gt;Title for the blog&lt;\/h1&gt;\n\n      &lt;p&gt;Article content goes here&lt;\/p&gt;\n    &lt;\/article&gt;\n  &lt;\/main&gt;\n\n  &lt;footer&gt;\n    &lt;h2&gt;Join our Newsletter&lt;\/h2&gt;\n\n    &lt;input type=\"email\" \/&gt;\n  &lt;\/footer&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30d8\u30c3\u30c0\u30fc\u3068\u30d5\u30c3\u30bf\u30fc\u3092\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3059\u308b\u306e\u306f\u3001\u3042\u307e\u308a\u52b9\u7387\u7684\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u6c38\u7d9a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4fdd\u5b58\u3059\u308bInertia\u306e\u57fa\u672c\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cLayouts\u300d\u30d5\u30a9\u30eb\u30c0\u3092<strong>\/resources\/js<\/strong>\u4e0b\u306b\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u306b\u300cKinstaLayout.vue\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u30e9\u30c3\u30d7\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u4e2d\u306b\u57cb\u3081\u8fbc\u307e\u308c\u308b\u3088\u3046\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30d8\u30c3\u30c0\u30fc\u3068\u30d5\u30c3\u30bf\u30fc\u3001<code>&lt;slot \/&gt;<\/code>\u3092\u542b\u3080<code>main<\/code>\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>resources\/js\/Layouts\/<strong>KinstaLayout.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;&lt;\/script&gt;\n\n&lt;template&gt;\n    &lt;header&gt;\n    &lt;h1&gt;Kinsta Blog&lt;\/h1&gt;\n  &lt;\/header&gt;\n\n  &lt;main&gt;\n        &lt;slot \/&gt;\n  &lt;\/main&gt;\n\n  &lt;footer&gt;\n    &lt;h2&gt;Join our Newsletter&lt;\/h2&gt;\n\n    &lt;input type=\"email\" \/&gt;\n  &lt;\/footer&gt;\n\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u6b21\u306b\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u30da\u30fc\u30b8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3001\u3059\u3079\u3066\u306eHTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30e9\u30c3\u30d7\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>Index.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\nimport KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;KinstaLayout&gt;\n    &lt;section&gt;\n      &lt;h2&gt;Read our latest articles&lt;\/h2&gt;\n      &lt;article&gt;\n        &lt;div&gt;\n          &lt;img src=\"\/images\/kinsta-logo.png\" alt=\"Article thumbnail\" \/&gt;\n        &lt;\/div&gt;\n\n        &lt;h3&gt;Title for the blog&lt;\/h3&gt;\n        &lt;p&gt;\n          Lorem, ipsum dolor sit amet consectetur adipisicing elit. Illum rem\n          itaque error vel perferendis aliquam numquam dignissimos, expedita\n          perspiciatis consectetur!\n        &lt;\/p&gt;\n\n        &lt;a href=\"#\"&gt;Read more&lt;\/a&gt;\n      &lt;\/article&gt;\n    &lt;\/section&gt;\n  &lt;\/KinstaLayout&gt;\n &lt;\/template&gt;<\/code><\/pre>\n<p><strong>Show.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\n import KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;KinstaLayout&gt;\n    &lt;article&gt;\n      &lt;h1&gt;Title for the blog&lt;\/h1&gt;\n\n      &lt;p&gt;Article content goes here&lt;\/p&gt;\n    &lt;\/article&gt;\n  &lt;\/KinstaLayout&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h2>Laravel\u30eb\u30fc\u30c8\u3068Inertia\u30ec\u30f3\u30c0\u30fc<\/h2>\n<p>\u30b9\u30c6\u30c3\u30d71\u3067\u6319\u3052\u305f<strong>ArticleFactory<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3044\u304f\u3064\u304b\u306e\u8a18\u4e8b\u3092\u30b7\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<p>database\/seeders\/<strong>databaseSeeder.php<\/strong><\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nnamespace Database\\Seeders;\n\nuse App\\Models\\Article;\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n    public function run()\n    {\n        Article::factory(10)-&gt;create();\n    }\n}<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3001\u30d5\u30a1\u30af\u30c8\u30ea\u304b\u3089\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u30b7\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan migrate:fresh --seed<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b10\u4ef6\u306e\u30c0\u30df\u30fc\u8a18\u4e8b\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002Laravel\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u308c\u3092\u30d3\u30e5\u30fc\u306b\u6e21\u3057\u307e\u3059\u3002Inertia\u3067\u30d3\u30e5\u30fc\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u308c\u307e\u3067\u306e\u30eb\u30fc\u30c8\u306e\u66f8\u304d\u65b9\u3068\u5c11\u3057\u5909\u308f\u308a\u307e\u3059\u3002\u300croutes\/<strong>web.php<\/strong>\u300d\u306b\u6700\u521d\u306eLaravel Inertia\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001\u300c\/resources\/js\/Pages\/<strong>Index.vue<\/strong>\u300d\u304b\u3089\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30d3\u30e5\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>routes\/<strong>web.php<\/strong><\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nuse App\\Models\\Article;\nuse Illuminate\\Support\\Facades\\Route;\nuse Inertia\\Inertia;\n\nRoute::get('\/', function () {\n    return Inertia::render('Index', [\n        'articles' =&gt; Article::latest()-&gt;get()\n    ]);\n})-&gt;name('home');<\/code><\/pre>\n<p><code>Inertia<\/code>\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001Laravel\u30d8\u30eb\u30d1\u30fc\u306e<code>view()<\/code>\u3067\u306f\u306a\u304f\u3001<code>Inertia::render<\/code>\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30e5\u30fc\u3092\u8fd4\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305fInertia\u306f\u3001\u30eb\u30fc\u30c8\u3067\u8a00\u53ca\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001\u300cresources\/js\u300d\u306e<strong>Pages<\/strong>\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u63a2\u3057\u307e\u3059\u3002<\/p>\n<p>Index\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092prop\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3001<code>v-for<\/code>\u3067\u30eb\u30fc\u30d7\u3057\u3066\u7d50\u679c\u3092\u8868\u793a\u3057\u307e\u3059\u3002script\u30bf\u30b0\u306e\u4e2d\u3067\u3001\u6e21\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092prop\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u307e\u3059\u3002Inertia\u306b\u306f\u671f\u5f85\u3059\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306e\u307f\u304c\u5fc5\u8981\u3067\u3001\u3053\u3053\u3067\u306f\u8a18\u4e8b\u306e\u914d\u5217\u3092\u542b\u3080articles\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>resources\/js\/Pages\/<strong>Index.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\nimport KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\n\n  defineProps({\n    articles: Object,\n  });\n&lt;\/script&gt;<\/code><\/pre>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306fVue.js 3\u306eComposition API\u306e<code>setup<\/code>\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001prop\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u3060\u3051\u3067\u5341\u5206\u3067\u3001\u8fd4\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002Options API\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u3092\u8fd4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30eb\u30fc\u30d7\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;template&gt;\n  &lt;KinstaLayout&gt;\n    &lt;h2&gt;Read our latest articles&lt;\/h2&gt;\n\n    &lt;section&gt;\n      \/\/ Looping over articles\n      &lt;article v-for=\"article in articles\":key=\"article.id\"&gt;\n        &lt;div&gt;\n          &lt;img src=\"\/images\/kinsta-logo.png\" alt=\"Article thumbnail\" \/&gt;\n        &lt;\/div&gt;\n\n        &lt;h3&gt;{{article.title}}&lt;\/h3&gt;\n        &lt;p&gt;{{article.excerpt}}&lt;\/p&gt;\n\n        &lt;a href=\"#\"&gt;Read more&lt;\/a&gt;\n      &lt;\/article&gt;\n    &lt;\/section&gt;\n  &lt;\/KinstaLayout&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p><code>npm run dev<\/code>\uff08Vite\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u8d77\u52d5\u3057\u305f\u307e\u307e\uff09\u3068\u3001<code>php artisan serve<\/code>\u3067Laravel\u306e\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e10\u4ef6\u306e\u8a18\u4e8b\u304c\u3059\u3079\u3066\u8868\u793a\u3055\u308c\u308b\u30da\u30fc\u30b8\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/vuejs-devtools\/nhdogjmejiglipccpnnnanhbledajbpd?hl=en\">Google Chrome\u306eVue DevTools<\/a>\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u304c\u3069\u306e\u3088\u3046\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u6e21\u3055\u308c\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<figure id=\"attachment_134667\" aria-describedby=\"caption-attachment-134667\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134667 size-large\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/inspect-Inertia-passed-data-1024x543.png\" alt=\"Inertia\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u691c\u8a3c\" width=\"1024\" height=\"543\"><figcaption id=\"caption-attachment-134667\" class=\"wp-caption-text\">Inertia\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u691c\u8a3c<\/figcaption><\/figure>\n<p>\u300carticles\u300d\u306f\u3001\u8a18\u4e8b\u306e\u914d\u5217\u3092\u542b\u3080prop\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u6e21\u3055\u308c\u307e\u3059\u3002\u914d\u5217\u5185\u306e\u5404\u8a18\u4e8b\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306b\u5bfe\u5fdc\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3061\u307e\u3059\u3002\u3064\u307e\u308a\u3001Laravel\u304b\u3089Inertia\u306b\u8ee2\u9001\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306f\u3001\u3059\u3079\u3066prop\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<\/p>\n<h2>Inertia.js\u3067\u306eTailwind CSS\u306e\u5229\u7528<\/h2>\n<p>Tailwind\u306f\u3059\u3067\u306b\u958b\u59cb\u6642\u70b9\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Inertia\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u6307\u793a\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<strong>tailwind.config.js<\/strong>\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">\/** @type {import('tailwindcss').Config} *\/\nmodule.exports = {\n  content: [\n    \".\/storage\/framework\/views\/*.php\",\n    \".\/resources\/views\/**\/*.blade.php\",\n    \".\/resources\/js\/**\/*.vue\",\n  ],\n  theme: {\n    extend: {},\n  },\n  plugins: [],\n};<\/code><\/pre>\n<p>\u300cresources\/js\/<strong>app.js<\/strong>\u300d\u5185\u3067CSS\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import \"..\/css\/app.css\";<\/code><\/pre>\n<p>\u3053\u308c\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>resources\/js\/Pages\/<strong>Index.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\nimport KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\n\n  defineProps({\n    articles: Object,\n  });\n&lt;\/script&gt;\n\n&lt;template&gt;\n &lt;KinstaLayout&gt;\n    &lt;h2 class=\"text-2xl font-bold py-10\"&gt;Read our latest articles&lt;\/h2&gt;\n\n    &lt;section class=\"space-y-5 border-b-2 pb-10\"&gt;\n      &lt;article\n        v-for=\"article in articles\"\n         :key=\"article.id\"\n        class=\"flex justify-center items-center shadow-md bg-white rounded-xl p-4 mx-auto max-w-3xl\"\n      &gt;\n\n         &lt;img\n            src=\"\/images\/kinsta-logo.png\"\n            class=\"w-32 h-32 rounded-xl object-cover\"\n            alt=\"\"\n         \/&gt;\n\n        &lt;div class=\"flex flex-col text-left justify-between pl-3 space-y-5\"&gt;\n          &lt;h3\n            class=\"text-xl font-semibold text-indigo-600 hover:text-indigo-800\"\n          &gt;\n            &lt;a href=\"#\"&gt;{{ article.title }}&lt;\/a&gt;\n          &lt;\/h3&gt;\n          &lt;p&gt;\n           {{ article.excerpt }}\n          &lt;\/p&gt;\n          &lt;a\n            href=\"#\"\n            class=\"text-indigo-600 hover:text-indigo-800 w-fit self-end font-semibold\"\n            &gt;Read more&lt;\/a\n          &gt;\n        &lt;\/div&gt;\n      &lt;\/article&gt;\n    &lt;\/section&gt;\n &lt;\/KinstaLayout&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>resources\/js\/Layouts\/<strong>KinstaLayout.vue<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;&lt;\/script&gt;\n\n&lt;template&gt;\n    &lt;header\n        class=\"bg-gradient-to-r from-blue-700 via-indigo-700 to-blue-700 w-full text-center py-4\"\n    &gt;\n        &lt;h1 class=\"text-white font-bold text-4xl\"&gt;Kinsta Blog&lt;\/h1&gt;\n    &lt;\/header&gt;\n\n    &lt;main class=\"container mx-auto text-center\"&gt;\n        &lt;slot \/&gt;\n    &lt;\/main&gt;\n\n    &lt;footer\n        class=\"bg-gradient-to-b from-transparent to-gray-300 w-full text-center mt-5 py-10 mx-auto\"\n    &gt;\n        &lt;h2 class=\"font-bold text-xl pb-5\"&gt;Join our Newsletter&lt;\/h2&gt;\n\n        &lt;input\n            class=\"rounded-xl w-80 h-12 px-3 py-2 shadow-md\"\n            type=\"email\"\n            placeholder=\"Write your email..\"\n        \/&gt;\n    &lt;\/footer&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3092\u898b\u308b\u3068\u3001Vite\u304c\u3059\u3067\u306bTailwind\u3067\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134669\" aria-describedby=\"caption-attachment-134669\" style=\"width: 911px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134669 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/kinsta-laravel-inertiajs-blog.gif\" alt=\"Inertia\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\" width=\"911\" height=\"620\"><figcaption id=\"caption-attachment-134669\" class=\"wp-caption-text\">Inertia\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0<\/figcaption><\/figure>\n<h2>Inertia\u30ea\u30f3\u30af<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u3067\u304d\u305f\u3089\u3001\u6b21\u306b\u500b\u3005\u306e\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b\u5225\u306e\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u65b0\u305f\u306b\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001URL\u306b\u300cid\u300d\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>routes\/<strong>web.php<\/strong><\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nuse App\\Models\\Article;\nuse Illuminate\\Support\\Facades\\Route;\nuse Inertia\\Inertia;\n\nRoute::get('\/', function () {\n    return Inertia::render('Index', [\n        'articles' =&gt; Article::latest()-&gt;get()\n    ]);\n})-&gt;name('home');\n\nRoute::get('\/posts\/{article:id}', function (Article $article) {\n    return Inertia::render('Show', [\n        'article' =&gt; $article\n    ]);\n})-&gt;name('article.show');<\/code><\/pre>\n<p>\u300cArticle\u300d\u30e2\u30c7\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001Inertia\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<strong>Show.vue<\/strong>\u3092\u8fd4\u3059\u65b0\u3057\u3044\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/laravel.com\/docs\/master\/routing#customizing-the-key\">Laravel\u306e\u30eb\u30fc\u30c8\u30e2\u30c7\u30eb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/a>\u306b\u3088\u308a\u3001Laravel\u304c\u81ea\u52d5\u7684\u306b\u53c2\u7167\u8a18\u4e8b\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u969b\u3001\u30da\u30fc\u30b8\u5168\u4f53\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u3053\u306e\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u308c\u306f\u3001Inertia\u306e\u512a\u308c\u305f\u6a5f\u80fd<code>&lt;Link&gt;<\/code>\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u5192\u982d\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001Inertia\u306f\u3001\u6a19\u6e96\u7684\u306a\u30a2\u30f3\u30ab\u30fc\u30bf\u30b0<code>&lt;a&gt;<\/code>\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066<code>&lt;Link&gt;<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30e9\u30c3\u30d1\u30fc\u306f\u3001\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u30da\u30fc\u30b8\u79fb\u52d5\u304c\u76ee\u7684\u3067\u3059\u3002<code>&lt;Link&gt;<\/code>\u30bf\u30b0\u306f\u3001<code>&lt;GET&gt;<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u30a2\u30f3\u30ab\u30fc\u30bf\u30b0\u3068\u3057\u3066\u632f\u308b\u821e\u3044\u307e\u3059\u304c\u3001\u540c\u6642\u306b<code>&lt;button&gt;<\/code>\u3084<code>&lt;form&gt;<\/code>\u3068\u3057\u3066\u3082\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u3069\u306e\u3088\u3046\u306b\u9069\u7528\u3067\u304d\u308b\u304b\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Index.vue\u306e\u4e2d\u3067\u3001Inertia\u304b\u3089<code>&lt;Link&gt;<\/code>\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001\u30a2\u30f3\u30ab\u30fc\u30bf\u30b0<code>&lt;a&gt;<\/code>\u3092<code>&lt;Link&gt;<\/code>\u30bf\u30b0\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<code>href<\/code>\u5c5e\u6027\u306b\u306f\u3001\u8a18\u4e8b\u306e\u95b2\u89a7\u7528\u306b\u4f5c\u6210\u3057\u305f\u30eb\u30fc\u30c8URL\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\nimport KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\nimport { Link } from \"@inertiajs\/inertia-vue3\";\n\ndefineProps({\n    articles: Object,\n});\n&lt;\/script&gt;\n\n&lt;template&gt;\n    &lt;KinstaLayout&gt;\n        &lt;section class=\"space-y-5 border-b-2 pb-10\"&gt;\n            &lt;h2 class=\"text-2xl font-bold pt-10 mx-auto text-center\"&gt;\n                Read our latest articles\n            &lt;\/h2&gt;\n\n            &lt;article\n                v-for=\"article in articles\"\n                :key=\"article.id\"\n                class=\"flex justify-center items-center shadow-md bg-white rounded-xl p-4 mx-auto max-w-3xl\"\n            &gt;\n                &lt;img\n                    src=\"\/images\/kinsta-logo.png\"\n                    class=\"w-32 h-32 rounded-xl object-cover\"\n                    alt=\"\"\n                \/&gt;\n\n                &lt;div\n                    class=\"flex flex-col text-left justify-between pl-3 space-y-5\"\n                &gt;\n                    &lt;h3\n                        class=\"text-xl font-semibold text-indigo-600 hover:text-indigo-800\"\n                    &gt;\n                        &lt;Link :href=\"'\/posts\/' + article.id\"&gt;{{\n                            article.title\n                        }}&lt;\/Link&gt;\n                    &lt;\/h3&gt;\n                    &lt;p&gt;\n                        {{ article.excerpt }}\n                    &lt;\/p&gt;\n                    &lt;Link\n                        :href=\"'\/posts\/' + article.id\"\n                        class=\"text-indigo-600 hover:text-indigo-800 w-fit self-end font-semibold\"\n                        &gt;Read more\n                    &lt;\/Link&gt;\n                &lt;\/div&gt;\n            &lt;\/article&gt;\n        &lt;\/section&gt;\n    &lt;\/KinstaLayout&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>Tailwind\u3067<strong>Show.vue<\/strong>\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5c11\u3057\u8abf\u6574\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305f\u3001\u300cArticle\u300d\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u901a\u77e5\u3057\u3001prop\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;script setup&gt;\nimport KinstaLayout from \"..\/Layouts\/KinstaLayout.vue\";\n\ndefineProps({\n    article: Object,\n});\n&lt;\/script&gt;\n\n&lt;template&gt;\n    &lt;KinstaLayout&gt;\n        &lt;article class=\"mx-auto mt-10 flex justify-center max-w-5xl border-b-2\"&gt;\n            &lt;img\n                src=\"\/images\/kinsta-logo.png\"\n                class=\"w-80 h-80 rounded-xl mx-auto py-5\"\n                alt=\"\"\n            \/&gt;\n            &lt;div class=\"text-left flex flex-col pt-5 pb-10 px-10\"&gt;\n                &lt;h1 class=\"text-xl font-semibold mb-10\"&gt;{{ article.title }}&lt;\/h1&gt;\n                &lt;p&gt;{{ article.body }}&lt;\/p&gt;\n            &lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/KinstaLayout&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u3084\u300cRead more\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u306a\u304f<strong>Show.vue<\/strong>\u306b\u79fb\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134671\" aria-describedby=\"caption-attachment-134671\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134671 size-large\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/kinsta-laravel-inertiajs-Link-1024x596.gif\" alt=\"\u52d5\u4f5c\u3059\u308bInertia\u30ea\u30f3\u30af\" width=\"1024\" height=\"596\"><figcaption id=\"caption-attachment-134671\" class=\"wp-caption-text\">\u52d5\u4f5c\u3059\u308bInertia\u30ea\u30f3\u30af<\/figcaption><\/figure>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001<code>&lt;Link&gt;<\/code>\u3092\u30a2\u30f3\u30ab\u30fc\u30bf\u30b0\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u30eb\u30fc\u30c8\u306b<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<code>&lt;Link&gt;<\/code>\u306f<code>POST<\/code>\u3001<code>PUT<\/code>\u3001<code>PATCH<\/code>\u3001<code>DELETE<\/code>\u306b\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>routes\/<strong>web.php<\/strong><\/p>\n<pre><code class=\"language-html\">&lt;Link href=\"\/logout\" method=\"post\" as=\"button\" type=\"button\"&gt;Logout&lt;\/Link&gt;<\/code><\/pre>\n<h2>Laravel\u3067Inertia\u3092\u4f7f\u7528\u3059\u308b\u30d2\u30f3\u30c8<\/h2>\n<p>Laravel\u3001Inertia\u3001Tailwind CSS\u3092\u4f7f\u3063\u305fSPA\u306e\u69cb\u7bc9\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001Inertia\u306e\u5b9f\u529b\u306f\u3053\u308c\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u3053\u304b\u3089\u306f\u3001\u958b\u767a\u8005\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5229\u7528\u8005\u306e\u4e21\u65b9\u306b\u6709\u7528\u306aInertia\u30c6\u30af\u30cb\u30c3\u30af\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3>URL\u306e\u751f\u6210<\/h3>\n<p>Laravel\u306e\u30eb\u30fc\u30c8\u306b\u540d\u524d\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u304c\u3001\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u304a\u6c17\u3065\u304d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Inertia\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u624b\u4f5c\u696d\u3067\u5b8c\u5168\u306a\u30eb\u30fc\u30c8\u3092\u7d44\u307f\u7acb\u3066\u308b\u4ee3\u308f\u308a\u306b\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u3067\u540d\u524d\u4ed8\u304d\u30eb\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b<a href=\"https:\/\/github.com\/tighten\/ziggy#installation\">Ziggy\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">composer require tightenco\/ziggy<\/code><\/pre>\n<p>\u6b21\u306b\u300cresources\/js\/app.js\u300d\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import \".\/bootstrap\";\nimport \"..\/css\/app.css\";\n\nimport { createApp, h } from \"vue\";\nimport { createInertiaApp } from \"@inertiajs\/inertia-vue3\";\nimport { resolvePageComponent } from \"laravel-vite-plugin\/inertia-helpers\";\nimport { ZiggyVue } from \"..\/..\/vendor\/tightenco\/ziggy\/dist\/vue.m\";\n\ncreateInertiaApp({\n    title: (title) =&gt; `${title} - ${appName}`,\n    resolve: (name) =&gt;\n        resolvePageComponent(\n            `.\/Pages\/${name}.vue`,\n            import.meta.glob(\".\/Pages\/**\/*.vue\")\n        ),\n    setup({ el, app, props, plugin }) {\n        return createApp({ render: () =&gt; h(app, props) })\n            .use(plugin)\n            .use(ZiggyVue, Ziggy)\n            .mount(el);\n    },\n});<\/code><\/pre>\n<p>\u300c\/resources\/views\/<strong>app.blade.php<\/strong>\u300d\u306ehead\u3092<code>@routes<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"{{ str_replace('_', '-', app()-&gt;getLocale()) }}\"&gt;\n\n&lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n\n    &lt;!-- Fetch project name dynamically --&gt;\n    &lt;title inertia&gt;{{ config('app.name', 'Laravel') }}&lt;\/title&gt;\n\n    &lt;!-- Scripts --&gt;\n    @routes\n    @vite('resources\/js\/app.js')\n    @inertiaHead\n&lt;\/head&gt;\n\n&lt;body class=\"font-sans antialiased\"&gt;\n    @inertia\n&lt;\/body&gt;\n\n&lt;\/html&gt;<\/code><\/pre>\n<p>\u4ee5\u4e0b2\u3064\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001NPM\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install && npm run dev<\/code><\/pre>\n<p>\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Inertia\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u3067\u540d\u524d\u4ed8\u304d\u30eb\u30fc\u30c8\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<strong>Index.vue<\/strong>\u3092\u958b\u3044\u3066\u53e4\u3044\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u3001\u30eb\u30fc\u30c8\u540d\u306b\u7f6e\u304d\u63db\u3048\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u5185\u3068\u540c\u3058\u3088\u3046\u306b\u901a\u5e38\u306e\u65b9\u6cd5\u3067\u30c7\u30fc\u30bf\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u90e8\u5206\u3092<\/p>\n<pre><code class=\"language-html\">&lt;Link :href=\"'\/posts\/' + article.id\"&gt;\n   {{ article.title }}\n&lt;\/Link&gt;<\/code><\/pre>\n<p>\u4ee5\u4e0b\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;Link :href=\"route('article.show', article.id)\"&gt;\n   {{ article.title }}\n&lt;\/Link&gt;<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u5909\u66f4\u5f8c\u3082\u3053\u308c\u307e\u3067\u3068\u540c\u3058\u3088\u3046\u306b\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u958b\u767a\u4f5c\u696d\u3092\u884c\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u7279\u306b\u591a\u304f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5fc5\u8981\u3068\u3059\u308b\u30eb\u30fc\u30c8\u306e\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h3>\u30d7\u30ed\u30b0\u30ec\u30b9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf<\/h3>\n<p>\u30d7\u30ed\u30b0\u30ec\u30b9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u306f\u3001Inertia.js\u306e\u7d20\u6674\u3089\u3057\u3044\u6a5f\u80fd\u306e1\u3064\u3067\u3059\u3002SPA\u306e\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u3067\u3042\u308b\u3053\u3068\u304b\u3089\u3001\u5e38\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u8aad\u307f\u8fbc\u307f\u4e2d\u304b\u3069\u3046\u304b\u3092\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u512a\u308c\u305f\u4ed8\u52a0\u4fa1\u5024\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u3001Inertia\u306e\u5225\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u300c@inertiajs\/progress\u300d\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001<a href=\"https:\/\/ricostacruz.com\/nprogress\/\">NProgress<\/a>\u306e\u30e9\u30c3\u30d1\u30fc\u3067\u3001Inertia\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u3058\u3066\u6761\u4ef6\u4ed8\u304d\u3067\u30ed\u30fc\u30c9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u88cf\u5074\u306f\u7f6e\u3044\u3066\u304a\u3044\u3066\u3001\u65e9\u901f\u52d5\u4f5c\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install @inertiajs\/progress<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001<strong>resources\/js\/app.js<\/strong>\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import \".\/bootstrap\";\nimport \"..\/css\/app.css\";\n\nimport { createApp, h } from \"vue\";\nimport { createInertiaApp } from \"@inertiajs\/inertia-vue3\";\nimport { resolvePageComponent } from \"laravel-vite-plugin\/inertia-helpers\";\nimport { ZiggyVue } from \"..\/..\/vendor\/tightenco\/ziggy\/dist\/vue.m\";\nimport { InertiaProgress } from \"@inertiajs\/progress\";\n\ncreateInertiaApp({\n    title: (title) =&gt; `${title} - ${appName}`,\n    resolve: (name) =&gt;\n        resolvePageComponent(\n            `.\/Pages\/${name}.vue`,\n            import.meta.glob(\".\/Pages\/**\/*.vue\")\n        ),\n    setup({ el, app, props, plugin }) {\n        return createApp({ render: () =&gt; h(app, props) })\n            .use(plugin)\n            .use(ZiggyVue, Ziggy)\n            .mount(el);\n    },\n});\n\nInertiaProgress.init({ color: \"#000000\", showSpinner: true });<\/code><\/pre>\n<p>\u3059\u308b\u3068\u3001\u9ed2\u8272\u306e\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30d0\u30fc\u3068\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30d4\u30ca\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8272\u306e\u5909\u66f4\u7b49\u306e\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/inertiajs.com\/progress-indicators\">\u30d7\u30ed\u30b0\u30ec\u30b9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u306b\u95a2\u3059\u308b\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure id=\"attachment_134672\" aria-describedby=\"caption-attachment-134672\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134672 size-large\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Inertia-progress-indicator-1024x83.gif\" alt=\"Inertia\u30d7\u30ed\u30b0\u30ec\u30b9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\uff08\u53f3\u4e0a\uff09\" width=\"1024\" height=\"83\"><figcaption id=\"caption-attachment-134672\" class=\"wp-caption-text\">Inertia\u30d7\u30ed\u30b0\u30ec\u30b9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\uff08\u53f3\u4e0a\uff09<\/figcaption><\/figure>\n<h3>\u30b9\u30af\u30ed\u30fc\u30eb\u7ba1\u7406<\/h3>\n<p>\u5225\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3059\u308b\u969b\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u4fdd\u6301\u3057\u305f\u3044\u3053\u3068\u3082\u3002\u4f8b\u3048\u3070\u30b3\u30e1\u30f3\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308b\u969b\u3001\u30d5\u30a9\u30fc\u30e0\u304c\u9001\u4fe1\u3055\u308c\u308b\u3068\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u65b0\u898f\u30b3\u30e1\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u304c\u3001\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306f\u5909\u66f4\u3057\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002Inertia\u306f\u3053\u3046\u3057\u305f\u51e6\u7406\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<strong>Index.vue<\/strong>\u306e<code>&lt;Link&gt;<\/code>\u30bf\u30b0\u306b\u9069\u7528\u3057\u305f\u4f8b\u3067\u3059\u3002<code>&lt;Link&gt;<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5225\u306e\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u969b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u4fdd\u6301\u3059\u308b\u306b\u306f\u3001<code>&lt;Link&gt;<\/code>\u306b<code>preserve-scroll<\/code>\u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;Link :href=\"route('article.show', article.id)\" preserve-scroll&gt;\n  {{ article.title }}\n&lt;\/Link&gt;<\/code><\/pre>\n<h2>SEO\u306e\u30d2\u30f3\u30c8<\/h2>\n<p>SPA\u304c\u666e\u53ca\u3057\u3066\u4ee5\u6765\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u6700\u9069\u5316\uff08SEO\uff09\u306f\u5e38\u306b\u8ab2\u984c\u3068\u3057\u3066\u6319\u3052\u3089\u308c\u3066\u304d\u307e\u3057\u305f\u3002\u4e00\u822c\u306b\u77e5\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001SPA\u3067\u306f\u3059\u3079\u3066\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308b\u305f\u3081\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u3088\u308b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u304c\u56f0\u96e3\u306b\u306a\u308a\u3001\u7d50\u679c\u3068\u3057\u3066\u691c\u7d22\u7d50\u679c\u306e\u4e0a\u4f4d\u306b\u8868\u793a\u3055\u308c\u306b\u304f\u304f\u306a\u308b\u305f\u3081\u3067\u3059\u3002\u3057\u304b\u3057\u3001Facebook\u3084Github\u306a\u3069\u306e\u4eba\u6c17\u30b5\u30fc\u30d3\u30b9\u306f\u3001SPA\u3092\u63a1\u7528\u3057\u306a\u304c\u3089\u3001\u52b9\u679c\u7684\u306bSEO\u306b\u529b\u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e8b\u5b9f\u306f\u3001SPA\u3067\u3082SEO\u306e\u65bd\u7b56\u304c\u6253\u3066\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002Inertia\u306b\u306f\u3001SPA\u306eSEO\u3092\u5411\u4e0a\u3059\u308b\u30c4\u30fc\u30eb\u304c\u3044\u304f\u3064\u304b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>Laravel\u3068Vite\u306b\u3088\u308bInertia Vue\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0<\/h3>\n<p>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u8a8d\u8b58\u306e\u305f\u3081\u5e38\u306b\u30b5\u30a4\u30c8\u306eHTML\u3092\u63a2\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057URL\u306bHTML\u304c\u306a\u3051\u308c\u3070\u3001\u8a8d\u8b58\u304c\u3067\u304d\u307e\u305b\u3093\u3002SPA\u306e\u958b\u767a\u3067\u30da\u30fc\u30b8\u4e0a\u306b\u3042\u308b\u3082\u306e\u306f\u3001JavaScript\u3068JSON\u3060\u3051\u3067\u3059\u3002Inertia\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u53ef\u80fd\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\uff08SSR\uff09\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u6700\u521d\u306e\u8a2a\u554f\u30da\u30fc\u30b8\u3092\u4e8b\u524d\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3066\u304a\u304d\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u305fHTML\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30da\u30fc\u30b8\u304c\u5b8c\u5168\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u524d\u306b\u95b2\u89a7\u30fb\u64cd\u4f5c\u3067\u304d\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306f\u3001\u30b5\u30a4\u30c8\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3059\u308b\u6642\u9593\u3092\u77ed\u7e2e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8981\u7d04\u3059\u308b\u3068\u3001Inertia\u306f\u3001Node.js\u30b5\u30fc\u30d0\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3057\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u540d\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3001URL\u3001\u30a2\u30bb\u30c3\u30c8\u30d0\u30fc\u30b8\u30e7\u30f3\u3092HTML\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u5bfe\u3057\u3001\u30da\u30fc\u30b8\u306b\u542b\u307e\u308c\u308b\u5b9f\u8cea\u7684\u306a\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u914d\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fLaravel\u3092\u6271\u3063\u3066\u3044\u307e\u3059\u3002Laravel\u306fPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308a\u3001Node.js\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u307b\u3068\u3093\u3069\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u3092Node.js\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u8ee2\u9001\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u30da\u30fc\u30b8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3066HTML\u3092\u8fd4\u305b\u3070\u3001Laravel Vue\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eSEO\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5f37\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001Vue.js SSR npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install @vue\/server-renderer<\/code><\/pre>\n<p>\u5225\u306e\u6709\u7528\u306aInertia\u300cNPM\u300d\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u300cHTTP\u300d\u30b5\u30fc\u30d0\u30fc\u3092\u63d0\u4f9b\u3057\u307e\u3059\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u63a8\u5968\uff09\u3002<\/p>\n<pre><code class=\"language-bash\">npm install @inertiajs\/server<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u300cresources\/js\/\u300d\u306b\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb<strong>ssr.js<\/strong>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001Inertia\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3057\u305f<strong>app.js<\/strong>\u3068\u975e\u5e38\u306b\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u306a\u304fNode.js\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { createSSRApp, h } from \"vue\";\nimport { renderToString } from \"@vue\/server-renderer\";\nimport { createInertiaApp } from \"@inertiajs\/inertia-vue3\";\nimport createServer from \"@inertiajs\/server\";\nimport { resolvePageComponent } from \"laravel-vite-plugin\/inertia-helpers\";\nimport { ZiggyVue } from \"..\/..\/vendor\/tightenco\/ziggy\/dist\/vue.m\";\n\nconst appName = \"Laravel\";\n\ncreateServer((page) =&gt;\n    createInertiaApp({\n        page,\n        render: renderToString,\n        title: (title) =&gt; `${title} - ${appName}`,\n        resolve: (name) =&gt;\n            resolvePageComponent(\n                `.\/Pages\/${name}.vue`,\n                import.meta.glob(\".\/Pages\/**\/*.vue\")\n            ),\n        setup({ app, props, plugin }) {\n            return createSSRApp({ render: () =&gt; h(app, props) })\n                .use(plugin)\n                .use(ZiggyVue, {\n                    ...page.props.ziggy,\n                    location: new URL(page.props.ziggy.location),\n                });\n        },\n    })\n);<\/code><\/pre>\n<p>\u306a\u304a\u3001<strong>ssr.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u3079\u3066\u3092\u8a70\u3081\u8fbc\u307e\u306a\u3044\u3088\u3046\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u8a2a\u554f\u8005\u306b\u306f\u8868\u793a\u3055\u308c\u305a\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3084\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u3057\u3066\u30da\u30fc\u30b8\u5185\u306e\u30c7\u30fc\u30bf\u3092\u63d0\u793a\u3059\u308b\u305f\u3081\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3068\u3057\u3066\u91cd\u8981\u306a\u3082\u306e\u3001\u307e\u305f\u306f\u30c7\u30fc\u30bf\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u3082\u306e\u3060\u3051\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u300cInertia\u306eSSR\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30dd\u30fc\u30c813714\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001createServer\u30e1\u30bd\u30c3\u30c9\u306b\u7b2c2\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066\u5909\u66f4\u3067\u304d\u307e\u3059\u300d\uff08Inertia\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u65e5\u672c\u8a9e\u8a33\uff09<\/p>\n<p>Inertia.js\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u3001Inertia SSR\u3092Vite\u306b\u7d71\u5408\u3059\u308b\u65b9\u6cd5\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4ee5\u4e0b\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<strong>vite.config.js<\/strong>\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-js\">import { defineConfig } from \"vite\";\nimport laravel from \"laravel-vite-plugin\";\nimport vue from \"@vitejs\/plugin-vue\";\n\nexport default defineConfig({\n    plugins: [\n        laravel({\n            input: \"resources\/js\/app.js\",\n            ssr: \"resources\/js\/ssr.js\",\n        }),\n        vue({\n            template: {\n                transformAssetUrls: {\n                    base: null,\n                    includeAbsolute: false,\n                },\n            },\n        }),\n    ],\n});<\/code><\/pre>\n<p>\u6b21\u306b<strong>package.json<\/strong>\u3092\u958b\u304d\u3001build\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-json\">\"build\": \"vite build && vite build --ssr\"<\/code><\/pre>\n<p>\u3053\u3053\u3067<code>npm run build<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Vite\u304c\u672c\u756a\u7528\u306eSSR\u30d0\u30f3\u30c9\u30eb\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u300e<a href=\"https:\/\/inertiajs.com\/server-side-rendering\">Inertia SSR\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u300f\u3068\u300e<a href=\"https:\/\/laravel-vite.dev\/guide\/features\/ssr.html#building\">Vite SSR\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u300f\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30bf\u30a4\u30c8\u30eb\u3068\u30e1\u30bf<\/h3>\n<p>JavaScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e<code>&lt;body&gt;<\/code>\u5185\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e<code>&lt;head&gt;<\/code>\u306f\u7bc4\u56f2\u5916\u306e\u305f\u3081\u3001\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3067\u304d\u307e\u305b\u3093\u3002Inertia\u306e<code>&lt;Head&gt;<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u30da\u30fc\u30b8\u306e<code>&lt;title&gt;<\/code>\u3001<code>&lt;meta&gt;<\/code>\u30bf\u30b0\u3001\u305d\u306e\u4ed6\u306e<code>&lt;head&gt;<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a2d\u5b9a\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u306b<code>&lt;head&gt;<\/code>\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001<code>&lt;Link&gt;<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u540c\u69d8\u306bInertia\u304b\u3089<code>&lt;Head&gt;<\/code>\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">import { Head } from '@inertiajs\/inertia-vue3'\n\n&lt;Head&gt;\n  &lt;title&gt;Kinsta Blog&lt;\/title&gt;\n  &lt;meta name=\"description\" content=\"Kinsta blog for developers\"&gt;\n&lt;\/Head&gt;<\/code><\/pre>\n<p>\u307e\u305f\u3001\u3059\u3079\u3066\u306e\u30da\u30fc\u30b8\u306b\u30b0\u30ed\u30fc\u30d0\u30eb\u30bf\u30a4\u30c8\u30eb\u3092\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002\u3059\u3067\u306b<strong>app.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u306e\u6a2a\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">createInertiaApp({\n    title: (title) =&gt; `${title} - ${appName}`,\n    \/\/\n});<\/code><\/pre>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u30bf\u30a4\u30c8\u30eb\u4ed8\u304d\u3067\u3001<code>&lt;Head title=\"Home\"&gt;<\/code>\u3068\u3059\u308b\u3068\u3001<code>&lt;title&gt;Home - My App&lt;\/title&gt;<\/code>\u306e\u3088\u3046\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u76e3\u8996<\/h3>\n<p>\u901f\u5ea6\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306eSEO\u3092\u5411\u4e0a\u3059\u308b\u4e0a\u3067\u6700\u3082\u91cd\u8981\u306a\u8981\u7d20\u306e1\u3064\u3067\u3059\u3002WordPress\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/apm-tool\/\">Kinsta APM<\/a>\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u304d\u3092\u5e38\u306b\u76e3\u8996\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Kinsta APM\u306f\u3001Kinsta\u306e\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u30d7\u30e9\u30f3\u306b\u7121\u6599\u3067\u4ed8\u5e2f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Inertia.js\u306f\u73fe\u5728\u3001\u6700\u3082\u91cd\u8981\u306a\u6280\u8853\u306e1\u3064\u3002Laravel\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001PHP\u3068JavaScript\u3067\u69cb\u7bc9\u3055\u308c\u305f\u6700\u65b0\u306e\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Laravel\u306e\u958b\u767a\u8005\u3067\u3042\u308bTaylor Otwell\u6c0f\u306f\u3001Inertia\u306e\u53ef\u80fd\u6027\u3092\u898b\u51fa\u3057\u3001Inertia\u3068SSR\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305f\u4eba\u6c17\u306e\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u3001Laravel Breeze\u3068Jetstream\u3092\u767a\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<p>Laravel\u30d5\u30a1\u30f3\u3084\u30d7\u30ed\u306e\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001Inertia.js\u306f\u9593\u9055\u3044\u306a\u304f\u6ce8\u76ee\u3059\u3079\u304d\u6280\u8853\u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30d6\u30ed\u30b0\u3092\u6570\u5206\u3067\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001Inertia\u306b\u3064\u3044\u3066\u5b66\u3076\u3053\u3068\u306f\u3001\u307e\u3060\u307e\u3060\u3042\u308a\u307e\u3059\u3002\u4eca\u5f8c\u3082Kinsta\u30d6\u30ed\u30b0\u306b\u3066Inertia\u306b\u95a2\u3059\u308b\u89e3\u8aac\u8a18\u4e8b\u3092\u516c\u958b\u3057\u3066\u3044\u304f\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>Laravel\u306b\u3064\u3044\u3066\u3001\u6c17\u306b\u306a\u308b\u3053\u3068\u3001\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u5e74\u3001\u30de\u30eb\u30c1\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08MPA\uff09\u306e\u4eba\u6c17\u306f &#8230;<\/p>\n","protected":false},"author":266,"featured_media":39884,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[713,482,508,564,724],"topic":[784],"class_list":["post-39883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-inertia-js","tag-javascript","tag-laravel","tag-php-frameworks","tag-spa","topic-laravel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-12T15:19:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T13:29:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mostafa Said\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mostafa Said\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\"},\"author\":{\"name\":\"Mostafa Said\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/e96baff25a5ee7e63a525f9557f79996\"},\"headline\":\"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2022-12-12T15:19:21+00:00\",\"dateModified\":\"2023-08-25T13:29:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\"},\"wordCount\":623,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\",\"keywords\":[\"inertia.js\",\"JavaScript\",\"laravel\",\"php frameworks\",\"spa\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\",\"name\":\"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\",\"datePublished\":\"2022-12-12T15:19:21+00:00\",\"dateModified\":\"2023-08-25T13:29:45+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png\",\"width\":1460,\"height\":730,\"caption\":\"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/laravel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/e96baff25a5ee7e63a525f9557f79996\",\"name\":\"Mostafa Said\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/96bb303b019e8ddbdbaea885a36fee51?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/96bb303b019e8ddbdbaea885a36fee51?s=96&d=mm&r=g\",\"caption\":\"Mostafa Said\"},\"description\":\"I\u2019m Mostafa, a full-stack developer with a knack for all things Laravel, Inertia, and JavaScript frameworks. When I'm not coding, you can find me sharing my knowledge through tutorials, diving into hackathons (and winning a few), and spreading the love for tech by teaching what I've learned.\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/mostafasaid\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/","og_locale":"ja_JP","og_type":"article","og_title":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-12-12T15:19:21+00:00","article_modified_time":"2023-08-25T13:29:45+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","type":"image\/png"}],"author":"Mostafa Said","twitter_card":"summary_large_image","twitter_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Mostafa Said","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/"},"author":{"name":"Mostafa Said","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/e96baff25a5ee7e63a525f9557f79996"},"headline":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","datePublished":"2022-12-12T15:19:21+00:00","dateModified":"2023-08-25T13:29:45+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/"},"wordCount":623,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","keywords":["inertia.js","JavaScript","laravel","php frameworks","spa"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/","url":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/","name":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","datePublished":"2022-12-12T15:19:21+00:00","dateModified":"2023-08-25T13:29:45+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u3001Vue\u3001Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001Inertia.js\u3067\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/12\/laravel-inertia.png","width":1460,"height":730,"caption":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Laravel","item":"https:\/\/kinsta.com\/jp\/topics\/laravel\/"},{"@type":"ListItem","position":3,"name":"Laravel\u3067Inertia.js\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/e96baff25a5ee7e63a525f9557f79996","name":"Mostafa Said","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/96bb303b019e8ddbdbaea885a36fee51?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/96bb303b019e8ddbdbaea885a36fee51?s=96&d=mm&r=g","caption":"Mostafa Said"},"description":"I\u2019m Mostafa, a full-stack developer with a knack for all things Laravel, Inertia, and JavaScript frameworks. When I'm not coding, you can find me sharing my knowledge through tutorials, diving into hackathons (and winning a few), and spreading the love for tech by teaching what I've learned.","url":"https:\/\/kinsta.com\/jp\/blog\/author\/mostafasaid\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/39883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/266"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=39883"}],"version-history":[{"count":8,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/39883\/revisions"}],"predecessor-version":[{"id":46884,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/39883\/revisions\/46884"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/39883\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/39884"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=39883"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=39883"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=39883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}