{"id":114,"date":"2024-04-10T15:16:09","date_gmt":"2024-04-10T12:16:09","guid":{"rendered":"https:\/\/road-to-heaven.viro35.ru\/?page_id=114"},"modified":"2024-07-31T16:06:55","modified_gmt":"2024-07-31T13:06:55","slug":"%d1%81%d0%be%d0%b7%d0%b4%d0%b0%d0%bd%d0%b8%d0%b5-%d0%bf%d1%80%d0%be%d0%b5%d0%ba%d1%82%d0%b0","status":"publish","type":"page","link":"https:\/\/road-to-heaven.viro35.ru\/?page_id=114","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430"},"content":{"rendered":"\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d Composer<\/p>\n\n\n\n<p><a href=\"https:\/\/getcomposer.org\/\">\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project laravel\/laravel \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/code><\/pre>\n\n\n\n<p>\u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0432\u0435\u0431\u043a\u043e\u043d\u0444\u0438\u0433 \u0432 public<\/p>\n\n\n\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 .env \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435 \u0438 \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate\ncomposer require doctrine\/dbal\ncomposer require laravel\/breeze --dev\nphp artisavuen breeze:install\nphp artisan migrate\nnpm install\nnpm run dev<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/tailwindcss.com\/docs\/guides\/laravel\">\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0432\u0438\u043c tailwind<\/a><\/p>\n\n\n\n<p>\u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u044b<\/p>\n\n\n\n<p><a href=\"https:\/\/laravel.com\/docs\/master\/mail#customizing-the-components\">https:\/\/laravel.com\/docs\/master\/mail#customizing-the-components<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan vendor:publish --tag=laravel-mail\nphp artisan vendor:publish --tag=laravel-notifications<\/code><\/pre>\n\n\n\n<p>\u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan lang:publish\n\/\/ \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432 config\/app.php<\/code><\/pre>\n\n\n\n<p>\u0414\u043b\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435Controller \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043a \u043d\u0435\u0439 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model Post -m<\/code><\/pre>\n\n\n\n<p>\u0422\u0443\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 Post \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438, \u044d\u0442\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0430\u043d\u043e \u0438\u043c\u044f \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0447\u0438\u0441\u043b\u0435. \u041d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043d\u0430\u043a\u0430\u0442\u0438\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0441\u043b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e<\/p>\n\n\n\n<p>\u0415\u0441\u0442\u044c 2 \u0441\u043b\u0430\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0438 \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 up() \u0438 down() <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate\nphp artisan migrate:rollback<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/laravel.com\/docs\/11.x\/migrations#creating-columns\">\u0422\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438<\/a><\/p>\n\n\n\n<p>\u0435\u0441\u043b\u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0441\u0435 \u043f\u043b\u043e\u0445\u043e \u0442\u043e php artisan migrate:refresh<\/p>\n\n\n\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439<\/p>\n\n\n\n<p>php artisan make:migration add_column_\u041a\u041e\u041b\u041e\u041d\u041a\u0410_to_\u0422\u0410\u0411\u041b\u0418\u0426\u0410_table<\/p>\n\n\n\n<p>\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c, \u043d\u043e \u0432\u043e\u0442 to_ \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c, \u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0441\u0442\u043e \u0438\u0437 \u0432\u0435\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0438<\/p>\n\n\n\n<p>\u0432 up() $table-&gt;text(&#8216;content&#8217;)-&gt;nullable()-&gt;after(&#8216;\u043a\u043e\u043b\u043e\u043d\u043a\u0430&#8217;);<\/p>\n\n\n\n<p>\u0432 down() $table-&gt;dropColumn(&#8216;content&#8217;);<\/p>\n\n\n\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 (\u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u043f\u043e \u0441\u0443\u0442\u0438 \u0438\u043b\u0438 \u0447\u0435\u0433\u043e \u0435\u0449\u0435) <\/p>\n\n\n\n<p>php artisan make:migration delete_column_\u041a\u041e\u041b\u041e\u041d\u041a\u0410_to_\u0422\u0410\u0411\u041b\u0418\u0426\u0410_table<\/p>\n\n\n\n<p>\u0432\u0441\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u043a \u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442<\/p>\n\n\n\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0438<\/p>\n\n\n\n<p>php artisan make:migration edit_column_\u041a\u041e\u041b\u041e\u041d\u041a\u0410_to_\u0422\u0410\u0411\u041b\u0418\u0426\u0410_table<\/p>\n\n\n\n<p>\u0432 up() $table-&gt;renameColumn(&#8216;content&#8217;,&#8217;post_content&#8217;); \u0431\u044b\u043b\u043e\/\u0441\u0442\u0430\u043d\u0435\u0442<\/p>\n\n\n\n<p>\u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 down()<\/p>\n\n\n\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0438<\/p>\n\n\n\n<p>php artisan make:migration change_column_\u041a\u041e\u041b\u041e\u041d\u041a\u0410_to_\u0422\u0410\u0411\u041b\u0418\u0426\u0410_table<\/p>\n\n\n\n<p>\u0432 up() $table-&gt;renameColumn(&#8216;content&#8217;)-&gt;change();<\/p>\n\n\n\n<p>\u0432 \u0434\u0430\u0443\u043d\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439<\/p>\n\n\n\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b <\/p>\n\n\n\n<p>php artisan make:migration drop_to_\u0422\u0410\u0411\u041b\u0418\u0426\u0410_table<\/p>\n\n\n\n<p>\u0432 \u0430\u043f\u0435 \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435 Schema::dropIfExists(&#8216;posts&#8217;);<\/p>\n\n\n\n<p>\u043d\u043e \u0432\u043e\u0442 \u0432 \u0434\u0430\u0443\u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438, \u0447\u0442\u043e\u0431 \u0432\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d Composer \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0432\u0435\u0431\u043a\u043e\u043d\u0444\u0438\u0433 \u0432 public \u0412 \u0444\u0430\u0439\u043b\u0435 .env \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435 \u0438 \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0432\u0438\u043c tailwind \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u044b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-114","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":46,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}