{"id":326461,"date":"2021-07-14T21:00:21","date_gmt":"2021-07-14T21:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=326461"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=326461","title":{"rendered":"\u041f\u043e\u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Inertia Head"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/85b\/7a4\/151\/85b7a4151a22adf75a7bfaf262cb2661.png\" width=\"780\" height=\"439\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 <a href=\"https:\/\/inertiajs.com\/\"><u>Inertia.js<\/u><\/a> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u043c\u0435\u043d\u0443\u0435\u043c\u044b\u0439 \u00abInertia head\u00bb. \u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0442\u0435\u0433\u0438 &lt;title&gt; \u0438 &lt;meta&gt; \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430 &lt;head&gt; \u0432 \u0432\u0430\u0448\u0435\u043c HTML. \u0414\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c &lt;title&gt; \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439, \u043d\u043e \u0443\u0436 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u043e \u0438 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043d\u0430 \u0432\u0430\u0448\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0435\u0431\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u0433\u0438 <a href=\"https:\/\/ogp.me\/\"><u>Open Graph<\/u><\/a> \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u044e, \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0444\u0430\u0432\u0438\u043a\u043e\u043d; \u044d\u0442\u043e \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043d\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443, \u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c (<a href=\"https:\/\/laravel.com\/docs\/8.x\/starter-kits\"><u>starter kit<\/u><\/a>) Laravel <a href=\"https:\/\/laravel.com\/docs\/8.x\/starter-kits#breeze-and-inertia\"><u>Breeze<\/u><\/a>.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0438\u0442\u0435 \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Laravel.<\/p>\n<pre><code class=\"php\">laravel new inertia-head-demo<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e, \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 <code>cd<\/code> \u0432 \u0441\u0432\u043e\u0439 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435<\/p>\n<pre><code>composer require laravel\/breeze --dev<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435<\/p>\n<pre><code>PHP artisan breeze:install vue<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e <code>devDependencies<\/code> \u0432\u0430\u0448\u0435\u0433\u043e package.json \u0431\u044b\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<pre><code class=\"php\">\"devDependencies\": {        \"@inertiajs\/inertia\": \"^0.8.4\",        \"@inertiajs\/inertia-vue3\": \"^0.3.5\",        \"@inertiajs\/progress\": \"^0.2.4\",        \"@tailwindcss\/forms\": \"^0.2.1\",        \"@vue\/compiler-sfc\": \"^3.0.5\",        \"autoprefixer\": \"^10.2.4\",        \"axios\": \"^0.21\",        \"laravel-mix\": \"^6.0.6\",        \"lodash\": \"^4.17.19\",        \"postcss\": \"^8.2.13\",        \"postcss-import\": \"^14.0.1\",        \"tailwindcss\": \"^2.1.2\",        \"vue\": \"^3.0.5\",        \"vue-loader\": \"^16.1.2\"    }<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f &lt;inertia-head&gt;, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e @inertiajs\/inertia, @inertiajs\/inertia-vue3. \u041f\u043e\u043a\u0430 \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c @inertiajs\/progress \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<pre><code class=\"php\">\"devDependencies\": {    \"@inertiajs\/inertia\": \"^0.9.1\",    \"@inertiajs\/inertia-vue3\": \"^0.4.2\",    \"@inertiajs\/progress\": \"^0.2.5\", \/\/ optional    ...  }<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c JavaScript \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448\u0438 \u0430\u0441\u0441\u0435\u0442\u044b \u0438 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u043c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<pre><code class=\"php\">npm install &amp;&amp; npm run watch<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0435\u0439\u0430\u0443\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0433\u0438 &lt;inertia-head&gt;. \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u00ab\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0412 Breeze \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043b\u0435\u0439\u0430\u0443\u0442-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430: Guest.vue, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 <code>resources\/js\/Layouts\/Guest.vue<\/code>, \u0438 <code>Authenticated.vue<\/code>, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 <code>resources\/js\/Layouts\/Authenticated.vue<\/code>. \u041b\u0435\u0439\u0430\u0443\u0442 Guest.vue \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043c\u0438 auth-\u0432\u044c\u044e, \u0430 Authenticated.vue \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u043c\u0441\u044f auth-\u044d\u043a\u0440\u0430\u043d\u0430\u0445 \u0438 \u043b\u0435\u0439\u0430\u0443\u0442\u0435 Guest.vue.&nbsp;<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432 Guest.vue \u0432 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0442\u0435\u0433\u043e\u0432 &lt;template&gt;.<\/p>\n<pre><code class=\"php\">&lt;inertia-head title=\"Inertia Head Demo\" \/&gt;<\/code><\/pre>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Laravel <a href=\"https:\/\/laravel.com\/docs\/8.x\/valet\"><u>Valet<\/u><\/a> \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u044f \u043f\u0435\u0440\u0435\u0439\u0434\u0443 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 http:\/\/inertia-head-demo.test\/login, \u044f \u043e\u0436\u0438\u0434\u0430\u044e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u0443\u0434\u0435\u0442 &#171;Inertia Head Demo&#187;, \u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0438 \/login \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044f \u0443\u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f &#171;Laravel&#187; \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0434\u043b\u044f APP_NAME \u0432 \u0432\u0430\u0448\u0435\u043c .env \u0444\u0430\u0439\u043b\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0442\u0435\u0433 &lt;title&gt;, \u0430 \u0435\u0441\u043b\u0438 \u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e, \u0442\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0439\u0434\u0435\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b app.blade.php, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u044d\u0442\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 8<\/p>\n<pre><code class=\"php\">&lt;title&gt;{{ config('app.name', 'Laravel') }}&lt;\/title&gt;<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u044b\u0448\u0435 \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u043b\u0435\u0439\u0430\u0443\u0442\u0435.<\/p>\n<p>\u0417\u0434\u043e\u0440\u043e\u0432\u043e, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438? \u0425\u043e\u0440\u043e\u0448\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0448\u0430\u0433. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Login.vue \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0435\u0433 &lt;inertia-head&gt;, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0432 Guest.vue<\/p>\n<pre><code class=\"php\">&lt;inertia-head title=\"Inertia Head Demo - Login\" \/&gt;<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435&nbsp; \/login, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 Inertia Head Demo &#8212; Login \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/48a\/a77\/b31\/48aa77b3179b024e7b5558e8ddd08985.png\" width=\"486\" height=\"70\"><figcaption><\/figcaption><\/figure>\n<h3>\u041c\u0435\u0442\u0430\u0442\u0435\u0433\u0438 Open Graph<\/h3>\n<p>Facebook \u0438 Twitter \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 URL. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e OG (Open Graph) \u0442\u0435\u0433\u0430\u0445 Facebook <a href=\"https:\/\/developers.facebook.com\/docs\/sharing\/webmasters\/#markup\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a> \u0438 \u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 (Cards) Twitter <a href=\"https:\/\/developer.twitter.com\/en\/docs\/twitter-for-websites\/cards\/guides\/getting-started\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 &lt;inertia-head&gt;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 Guest.vue, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435.<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo&lt;\/title&gt;     &lt;meta type=\"description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" \/&gt;     &lt;meta property=\"og:title\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta property=\"og:description\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta property=\"og:type\" content=\"website\" \/&gt;     &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c OG \u043c\u0435\u0442\u0430-\u0442\u0435\u0433\u0438, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a. \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0438 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 &lt;inertia-head&gt; \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 Login.vue \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e Inertia \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c OG \u0442\u0435\u0433\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c Login.vue \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435. \u042f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo - Login&lt;\/title&gt;     &lt;meta type=\"description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\/login\" \/&gt;     &lt;meta property=\"og:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta property=\"og:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta property=\"og:type\" content=\"website\" \/&gt;     &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 \/login\u2026 \u0427\u0422\u041e \u0417\u0414\u0415\u0421\u042c \u041f\u0420\u041e\u0418\u0421\u0425\u041e\u0414\u0418\u0422?<\/p>\n<pre><code class=\"php\">&lt;head&gt;   ...   &lt;meta type=\"description\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" inertia=\"\" \/&gt;   &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:card\" content=\"summary_large_image\" inertia=\"\" \/&gt;   &lt;meta type=\"description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:card\" content=\"summary_large_image\" inertia=\"\" \/&gt;   &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" inertia=\"\" \/&gt;   &lt;meta property=\"og:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:type\" content=\"website\" inertia=\"\" \/&gt;   &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" inertia=\"\" \/&gt;   &lt;title inertia=\"\"&gt;Inertia Head Demo - Login&lt;\/title&gt; &lt;\/head&gt;<\/code><\/pre>\n<p>\u041d\u0430\u0448 \u0442\u0435\u0433 &lt;head&gt; \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u043d\u0430\u0448\u0438\u0445 \u043c\u0435\u0442\u0430\u0442\u0435\u0433\u043e\u0432; \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442? \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 &lt;inertia-head&gt; \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0442\u0435\u0433 &lt;title&gt; . \u041a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0445\u043e\u0434\u0438\u0442 \u0434\u043e &lt;meta&gt; \u0442\u0435\u0433\u043e\u0432, &lt;inertia-head&gt; \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 &lt;meta&gt; \u0442\u0435\u0433\u0438 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 Login.vue \u0438 \u0441\u0442\u0430\u043a\u0430\u0435\u0442 \u0438\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u0438\u0445 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c &lt;inertia-head&gt;, \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e head-key, \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0435, \u0447\u0442\u043e \u0442\u0435\u0433 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437.<\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 <code>Inertia head Guest.vue<\/code> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo&lt;\/title&gt;     &lt;meta head-key=\"description\" type=\"description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:title\" name=\"twitter:title\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:site\" name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:creator\" name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:description\" name=\"twitter:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:card\" name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta head-key=\"og:url\" property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" \/&gt;     &lt;meta head-key=\"og:title\" property=\"og:title\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"og:description\" property=\"og:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"og:type\" property=\"og:type\" content=\"website\" \/&gt;     &lt;meta head-key=\"og:image\" property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0410 \u0432 Login.vue \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 &lt;inertia-head&gt; \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo - Login&lt;\/title&gt;     &lt;meta head-key=\"description\" type=\"description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta head-key=\"twitter:title\" name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta head-key=\"twitter:site\" name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:creator\" name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:description\" name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta head-key=\"twitter:card\" name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta head-key=\"og:url\" property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\/login\" \/&gt;     &lt;meta head-key=\"og:title\" property=\"og:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta head-key=\"og:description\" property=\"og:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta head-key=\"og:type\" property=\"og:type\" content=\"website\" \/&gt;     &lt;meta head-key=\"og:image\" property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0432\u043d\u0435\u0441\u0435\u0442\u0435 \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0430\u0448\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435\u0441\u044c \u0438 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"php\">&lt;head&gt;   ...   &lt;title inertia=\"\"&gt;Inertia Head Demo - Login&lt;\/title&gt;   &lt;meta type=\"description\" content=\"Inertia Head Demo - Login page.\" inertia=\"description\" \/&gt;   &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" inertia=\"og:url\" \/&gt;   &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" inertia=\"og:image\" \/&gt;   &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"twitter:title\" \/&gt;   &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" inertia=\"twitter:site\" \/&gt;   &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" inertia=\"twitter:creator\" \/&gt;   &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"twitter:description\" \/&gt;   &lt;meta name=\"twitter:card\" content=\"summary_large_image\" inertia=\"twitter:card\" \/&gt;   &lt;meta property=\"og:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"og:title\" \/&gt;   &lt;meta property=\"og:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"og:description\" \/&gt;   &lt;meta property=\"og:type\" content=\"website\" inertia=\"og:type\" \/&gt; &lt;\/head&gt;<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043a\u043e\u0435-\u0447\u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e &lt;inertia-head&gt;, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0433\u0440\u044f\u0434\u0443\u0449\u0435\u0439 \u0444\u0438\u0447\u0435\u0439, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0435\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u043d\u0430 <a href=\"https:\/\/inertiajs.com\/server-side-rendering\">\u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/a> \u0434\u043b\u044f Inertia. SSR \u0434\u043b\u044f Inertia \u0433\u043e\u0442\u043e\u0432 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f <a href=\"https:\/\/inertiajs.com\/\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0430\u0439\u0442 Inertia.js<\/a>, \u043d\u043e <a href=\"https:\/\/twitter.com\/reinink\/status\/1400072123654230019\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 <a href=\"https:\/\/forge.laravel.com\/\">Laravel Forge<\/a> \u0438 <a href=\"https:\/\/heroku.com\/\">Heroku<\/a> , \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/github.com\/sponsors\/reinink\">\u0441\u043f\u043e\u043d\u0441\u043e\u0440\u0430\u043c<\/a> Inertia.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041d\u0435 \u0441\u0442\u0435\u0441\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u0435 \u0432 <a href=\"https:\/\/twitter.com\/ninjaparade\">Twitter,<\/a> \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<hr>\n<blockquote>\n<p>\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u0443\u0440\u0441\u0430 <a href=\"https:\/\/otus.pw\/Bh5B\/\">&#171;Framework Laravel&#187;<\/a>.      <\/p>\n<\/blockquote>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/otus\/blog\/567718\/\"> https:\/\/habr.com\/ru\/company\/otus\/blog\/567718\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 <a href=\"https:\/\/inertiajs.com\/\"><u>Inertia.js<\/u><\/a> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u043c\u0435\u043d\u0443\u0435\u043c\u044b\u0439 \u00abInertia head\u00bb. \u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0442\u0435\u0433\u0438 &lt;title&gt; \u0438 &lt;meta&gt; \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430 &lt;head&gt; \u0432 \u0432\u0430\u0448\u0435\u043c HTML. \u0414\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c &lt;title&gt; \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439, \u043d\u043e \u0443\u0436 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u043e \u0438 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043d\u0430 \u0432\u0430\u0448\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0435\u0431\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u0433\u0438 <a href=\"https:\/\/ogp.me\/\"><u>Open Graph<\/u><\/a> \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u044e, \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0444\u0430\u0432\u0438\u043a\u043e\u043d; \u044d\u0442\u043e \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043d\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443, \u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c (<a href=\"https:\/\/laravel.com\/docs\/8.x\/starter-kits\"><u>starter kit<\/u><\/a>) Laravel <a href=\"https:\/\/laravel.com\/docs\/8.x\/starter-kits#breeze-and-inertia\"><u>Breeze<\/u><\/a>.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0438\u0442\u0435 \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Laravel.<\/p>\n<pre><code class=\"php\">laravel new inertia-head-demo<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e, \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 <code>cd<\/code> \u0432 \u0441\u0432\u043e\u0439 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435<\/p>\n<pre><code>composer require laravel\/breeze --dev<\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435<\/p>\n<pre><code>PHP artisan breeze:install vue<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e <code>devDependencies<\/code> \u0432\u0430\u0448\u0435\u0433\u043e package.json \u0431\u044b\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<pre><code class=\"php\">\"devDependencies\": {        \"@inertiajs\/inertia\": \"^0.8.4\",        \"@inertiajs\/inertia-vue3\": \"^0.3.5\",        \"@inertiajs\/progress\": \"^0.2.4\",        \"@tailwindcss\/forms\": \"^0.2.1\",        \"@vue\/compiler-sfc\": \"^3.0.5\",        \"autoprefixer\": \"^10.2.4\",        \"axios\": \"^0.21\",        \"laravel-mix\": \"^6.0.6\",        \"lodash\": \"^4.17.19\",        \"postcss\": \"^8.2.13\",        \"postcss-import\": \"^14.0.1\",        \"tailwindcss\": \"^2.1.2\",        \"vue\": \"^3.0.5\",        \"vue-loader\": \"^16.1.2\"    }<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f &lt;inertia-head&gt;, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e @inertiajs\/inertia, @inertiajs\/inertia-vue3. \u041f\u043e\u043a\u0430 \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c @inertiajs\/progress \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<pre><code class=\"php\">\"devDependencies\": {    \"@inertiajs\/inertia\": \"^0.9.1\",    \"@inertiajs\/inertia-vue3\": \"^0.4.2\",    \"@inertiajs\/progress\": \"^0.2.5\", \/\/ optional    ...  }<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c JavaScript \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448\u0438 \u0430\u0441\u0441\u0435\u0442\u044b \u0438 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u043c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<pre><code class=\"php\">npm install &amp;&amp; npm run watch<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0435\u0439\u0430\u0443\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0433\u0438 &lt;inertia-head&gt;. \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u00ab\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0412 Breeze \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043b\u0435\u0439\u0430\u0443\u0442-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430: Guest.vue, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 <code>resources\/js\/Layouts\/Guest.vue<\/code>, \u0438 <code>Authenticated.vue<\/code>, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 <code>resources\/js\/Layouts\/Authenticated.vue<\/code>. \u041b\u0435\u0439\u0430\u0443\u0442 Guest.vue \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043c\u0438 auth-\u0432\u044c\u044e, \u0430 Authenticated.vue \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u043c\u0441\u044f auth-\u044d\u043a\u0440\u0430\u043d\u0430\u0445 \u0438 \u043b\u0435\u0439\u0430\u0443\u0442\u0435 Guest.vue.&nbsp;<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432 Guest.vue \u0432 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0442\u0435\u0433\u043e\u0432 &lt;template&gt;.<\/p>\n<pre><code class=\"php\">&lt;inertia-head title=\"Inertia Head Demo\" \/&gt;<\/code><\/pre>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Laravel <a href=\"https:\/\/laravel.com\/docs\/8.x\/valet\"><u>Valet<\/u><\/a> \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u044f \u043f\u0435\u0440\u0435\u0439\u0434\u0443 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 http:\/\/inertia-head-demo.test\/login, \u044f \u043e\u0436\u0438\u0434\u0430\u044e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u0443\u0434\u0435\u0442 &#171;Inertia Head Demo&#187;, \u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0438 \/login \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044f \u0443\u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f &#171;Laravel&#187; \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0434\u043b\u044f APP_NAME \u0432 \u0432\u0430\u0448\u0435\u043c .env \u0444\u0430\u0439\u043b\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0442\u0435\u0433 &lt;title&gt;, \u0430 \u0435\u0441\u043b\u0438 \u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e, \u0442\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0439\u0434\u0435\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b app.blade.php, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u044d\u0442\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 8<\/p>\n<pre><code class=\"php\">&lt;title&gt;{{ config('app.name', 'Laravel') }}&lt;\/title&gt;<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u044b\u0448\u0435 \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u043b\u0435\u0439\u0430\u0443\u0442\u0435.<\/p>\n<p>\u0417\u0434\u043e\u0440\u043e\u0432\u043e, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438? \u0425\u043e\u0440\u043e\u0448\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0448\u0430\u0433. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Login.vue \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0435\u0433 &lt;inertia-head&gt;, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0432 Guest.vue<\/p>\n<pre><code class=\"php\">&lt;inertia-head title=\"Inertia Head Demo - Login\" \/&gt;<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435&nbsp; \/login, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 Inertia Head Demo &#8212; Login \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h3>\u041c\u0435\u0442\u0430\u0442\u0435\u0433\u0438 Open Graph<\/h3>\n<p>Facebook \u0438 Twitter \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 URL. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e OG (Open Graph) \u0442\u0435\u0433\u0430\u0445 Facebook <a href=\"https:\/\/developers.facebook.com\/docs\/sharing\/webmasters\/#markup\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a> \u0438 \u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 (Cards) Twitter <a href=\"https:\/\/developer.twitter.com\/en\/docs\/twitter-for-websites\/cards\/guides\/getting-started\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 &lt;inertia-head&gt;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 Guest.vue, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435.<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo&lt;\/title&gt;     &lt;meta type=\"description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" \/&gt;     &lt;meta property=\"og:title\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta property=\"og:description\" content=\"Inertia Head Demo\" \/&gt;     &lt;meta property=\"og:type\" content=\"website\" \/&gt;     &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c OG \u043c\u0435\u0442\u0430-\u0442\u0435\u0433\u0438, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a. \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0438 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 &lt;inertia-head&gt; \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 Login.vue \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e Inertia \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c OG \u0442\u0435\u0433\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c Login.vue \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435. \u042f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo - Login&lt;\/title&gt;     &lt;meta type=\"description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\/login\" \/&gt;     &lt;meta property=\"og:title\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta property=\"og:description\" content=\"Inertia Head Demo - Login page.\" \/&gt;     &lt;meta property=\"og:type\" content=\"website\" \/&gt;     &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 \/login\u2026 \u0427\u0422\u041e \u0417\u0414\u0415\u0421\u042c \u041f\u0420\u041e\u0418\u0421\u0425\u041e\u0414\u0418\u0422?<\/p>\n<pre><code class=\"php\">&lt;head&gt;   ...   &lt;meta type=\"description\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" inertia=\"\" \/&gt;   &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:card\" content=\"summary_large_image\" inertia=\"\" \/&gt;   &lt;meta type=\"description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:site\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:creator\" content=\"@ninjaparade\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta name=\"twitter:card\" content=\"summary_large_image\" inertia=\"\" \/&gt;   &lt;meta property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" inertia=\"\" \/&gt;   &lt;meta property=\"og:title\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:description\" content=\"Inertia Head Demo - Login page.\" inertia=\"\" \/&gt;   &lt;meta property=\"og:type\" content=\"website\" inertia=\"\" \/&gt;   &lt;meta property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" inertia=\"\" \/&gt;   &lt;title inertia=\"\"&gt;Inertia Head Demo - Login&lt;\/title&gt; &lt;\/head&gt;<\/code><\/pre>\n<p>\u041d\u0430\u0448 \u0442\u0435\u0433 &lt;head&gt; \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u043d\u0430\u0448\u0438\u0445 \u043c\u0435\u0442\u0430\u0442\u0435\u0433\u043e\u0432; \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442? \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 &lt;inertia-head&gt; \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0442\u0435\u0433 &lt;title&gt; . \u041a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0445\u043e\u0434\u0438\u0442 \u0434\u043e &lt;meta&gt; \u0442\u0435\u0433\u043e\u0432, &lt;inertia-head&gt; \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 &lt;meta&gt; \u0442\u0435\u0433\u0438 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 Login.vue \u0438 \u0441\u0442\u0430\u043a\u0430\u0435\u0442 \u0438\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u0438\u0445 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c &lt;inertia-head&gt;, \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e head-key, \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0435, \u0447\u0442\u043e \u0442\u0435\u0433 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437.<\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 <code>Inertia head Guest.vue<\/code> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo&lt;\/title&gt;     &lt;meta head-key=\"description\" type=\"description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:title\" name=\"twitter:title\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:site\" name=\"twitter:site\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:creator\" name=\"twitter:creator\" content=\"@ninjaparade\" \/&gt;     &lt;meta head-key=\"twitter:description\" name=\"twitter:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"twitter:card\" name=\"twitter:card\" content=\"summary_large_image\" \/&gt;     &lt;meta head-key=\"og:url\" property=\"og:url\" content=\"http:\/\/inertia-head-demo.test\" \/&gt;     &lt;meta head-key=\"og:title\" property=\"og:title\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"og:description\" property=\"og:description\" content=\"Inertia Head Demo.\" \/&gt;     &lt;meta head-key=\"og:type\" property=\"og:type\" content=\"website\" \/&gt;     &lt;meta head-key=\"og:image\" property=\"og:image\" content=\"https:\/\/www.biography.com\/.image\/t_share\/MTQ3NTI2OTA4NzY5MjE2MTI4\/drake_photo_by_prince_williams_wireimage_getty_479503454.jpg\" \/&gt; &lt;\/inertia-head&gt;<\/code><\/pre>\n<p>\u0410 \u0432 Login.vue \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 &lt;inertia-head&gt; \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">&lt;inertia-head&gt;     &lt;title&gt;Inertia Head Demo - Login&lt;\/title&gt;     &lt;meta<\/code><\/pre>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-326461","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326461"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326461\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}