{"id":329733,"date":"2022-02-17T09:01:14","date_gmt":"2022-02-17T09:01:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329733"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329733","title":{"rendered":"<span>9 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432 \u0432 Laravel 9<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/cec\/42f\/531\/cec42f531092e2ce377be81d4e36b84d.jpg\" alt=\"\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u00a9 GOLTS\" title=\"\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u00a9 GOLTS\" width=\"1921\" height=\"1081\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cec\/42f\/531\/cec42f531092e2ce377be81d4e36b84d.jpg\" data-blurred=\"true\"\/><figcaption>\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u00a9 GOLTS<\/figcaption><\/figure>\n<p>\u042f \u0441\u0440\u0430\u0437\u0443, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0440\u0435\u043b\u0438\u0437\u0435, \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0447\u0435\u0433\u043e \u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u0414\u0430-\u0434\u0430, \u043d\u0430 \u0434\u043d\u044f\u0445, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e 8 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2022, \u0432\u044b\u0448\u0435\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 Laravel 9, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0432\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439. \u0414\u043b\u044f \u0442\u0435\u0445 \u0436\u0435 \u0438\u0437 \u043d\u0430\u0441, \u043a\u0442\u043e \u043d\u0435 \u0431\u043e\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u043e\u0432, \u043a\u0430\u043a alfa \u0438 beta, \u0434\u0435\u0432\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u0438 \u0443\u0436\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u043b\u044c\u0448\u0435 (LTS), \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u0436\u0434\u044b\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432, \u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0437 \u0432 \u0433\u043e\u0434 &#8212; \u0432 \u0444\u0435\u0432\u0440\u0430\u043b\u0435. \u0421\u0443\u0434\u044f \u0438\u0437 <a href=\"https:\/\/laravel.com\/docs\/master\/releases#support-policy\"><u>\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/u><\/a><u>,<\/u> \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u043e\u0434, \u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e 2025 \u0433\u043e\u0434\u0430.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p><strong>\u0412\u0435\u0440\u0441\u0438\u044f<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p><strong>\u042f\u0437\u044b\u043a<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p><strong>\u0414\u0430\u0442\u0430 \u0440\u0435\u043b\u0438\u0437\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0412\u044b\u043f\u0443\u0441\u043a \u0431\u0430\u0433\u0444\u0438\u043a\u0441\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0412\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u0442\u0447\u0435\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>6 (LTS)<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.2 &#8212; 8.0<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>3 \u0441\u0435\u043d 2019<\/p>\n<\/td>\n<td>\n<p>25 \u044f\u043d\u0432 2022<\/p>\n<\/td>\n<td>\n<p>6 \u0441\u0435\u043d 2022<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>7<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.2 &#8212; 8.0<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>3 \u043c\u0430\u0440\u0442\u0430 2020<\/p>\n<\/td>\n<td>\n<p>6 \u043e\u043a\u0442 2020<\/p>\n<\/td>\n<td>\n<p>3 \u043c\u0430\u0440\u0442\u0430 2021<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>8<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.3 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>8 \u0441\u0435\u043d 2020<\/p>\n<\/td>\n<td>\n<p>26 \u0438\u044e\u043b\u044f 2022<\/p>\n<\/td>\n<td>\n<p>24 \u044f\u043d\u0432 2023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>9 (LTS)<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>8.0 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>8 \u0444\u0435\u0432 2022<\/p>\n<\/td>\n<td>\n<p>8 \u0444\u0435\u0432 2024<\/p>\n<\/td>\n<td>\n<p>8 \u0444\u0435\u0432 2025<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>10<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>8.0 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>7 \u0444\u0435\u0432 2023<\/p>\n<\/td>\n<td>\n<p>7 \u0430\u0432\u0433 2024<\/p>\n<\/td>\n<td>\n<p>7 \u0444\u0435\u0432 2025<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u0412\u0435\u0440\u0441\u0438\u044f \u044f\u0437\u044b\u043a\u0430<\/h2>\n<p>\u041d\u043e\u0432\u044b\u0439 Laravel \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 php 8.0 \u0438 \u0432\u044b\u0448\u0435. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0442\u0430\u043a? \u041a\u0430\u043a \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0434\u0430\u043b\u0435\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u043b\u0438 \u0432 \u0434\u0435\u0432\u044f\u0442\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u043d\u0435\u043c\u0430\u043b\u043e \u0444\u0438\u0448\u0435\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0437\u044b\u043a\u0430, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 php7 \u043e\u0437\u043d\u0430\u0447\u0430\u043b\u043e \u0431\u044b \u043f\u043e\u0442\u0435\u0440\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439.<\/p>\n<pre><code class=\"bash\">composer create-project laravel\/laravel example-app<\/code><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u0430 \u0435\u0435 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>laravel\/framework<\/code> \u0432\u0435\u0440\u0441\u0438\u0438 <em>v9.0.2<\/em>. \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0440\u0435\u043b\u0438\u0437\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0436\u0435 \u043f\u0430\u0442\u0447\u0430\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3a4\/c52\/d54\/3a4c52d54a0e427585d842af2e57abe4.png\" width=\"2278\" height=\"1529\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a4\/c52\/d54\/3a4c52d54a0e427585d842af2e57abe4.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u041d\u043e\u0432\u044b\u0435 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0438<\/h2>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0434\u0432\u0435 \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u0443\u0436\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f <a href=\"https:\/\/laravel.com\/docs\/9.x\/helpers#method-str\">\u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/a> <strong>str<\/strong> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Illuminate\\Support\\Stringable<\/code> \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043a \u0442\u0435\u043a\u0441\u0442\u0443 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443. \u0422\u0430\u043a\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0438 \u0432 8 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0447\u0435\u0440\u0435\u0437 <code>Str::of<\/code>, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u0435\u0435.<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () {     return str('Hello, ') \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438       ->append('Max')     \/\/ \u041c\u0435\u0442\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u043e\u043a\u0438       ->upper();          \/\/ \u041c\u0435\u0442\u043e\u0434 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u0431\u0443\u043a\u0432\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 });<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <strong>to_route<\/strong> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u043e\u0443\u0442 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0439 \u043a\u0430\u043a \u0432 \u043d\u0430\u0448\u0438\u0445 \u0440\u043e\u0443\u0442\u0430\u0445, \u0442\u0430\u043a \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<pre><code class=\"php\">&lt;?php  \/\/ \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 Route::get('\/', function () {     return view('welcome'); })->name('home'); \/\/ \u0418\u043c\u044f \u0440\u043e\u0443\u0442\u0430 \u0434\u043b\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b  \/\/ \u0421\u0442\u0430\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0440\u043e\u0443\u0442\u0430 Route::get('\/test', function () {     return redirect()->route('home'); });  \/\/ \u041d\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 to_route Route::get('\/new_test', function () {     return to_route('home'); });<\/code><\/pre>\n<p>\u0410 \u0435\u0449\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u043e\u0443\u0442\u0430, \u0441\u0442\u0430\u0442\u0443\u0441 HTTP \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438:<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () { return to_route('users.show',    \/\/ \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0430   ['user' => 1],                 \/\/ \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u043e\u0443\u0442\u0430     302,                           \/\/ \u041a\u043e\u0434 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430     ['X-Framework' => 'Laravel']); \/\/ \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 });<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 PHP 8, \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 <code>\\Illuminate\\Support\\Str<\/code> \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0442\u0430\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043a\u0430\u043a <code>str_contains()<\/code>, <code>str_starts_with()<\/code> \u0438 <code>str_ends_with()<\/code>.<\/p>\n<h2>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/h2>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u0430 \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0438 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0435\u0439 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u044b \u043d\u0430 \u0441\u0432\u0435\u0442\u043b\u0443\u044e\/\u0442\u0435\u043c\u043d\u0443\u044e, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 &#171;\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435&#187; \u0438 \u0434\u0440.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f74\/40f\/dcb\/f7440fdcb84a7a6f27c93deeccdfddc8.png\" alt=\"\u0422\u0435\u043c\u043d\u043e\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c Dracula \u0432 IDE\" title=\"\u0422\u0435\u043c\u043d\u043e\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c Dracula \u0432 IDE\" width=\"2880\" height=\"1672\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f74\/40f\/dcb\/f7440fdcb84a7a6f27c93deeccdfddc8.png\"\/><figcaption>\u0422\u0435\u043c\u043d\u043e\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c Dracula \u0432 IDE<\/figcaption><\/figure>\n<p>\u041d\u0438\u0436\u0435 \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/be3\/2ce\/4fe\/be32ce4fee4d176d93bbbcf417171cdc.png\" alt=\"\u0422\u0435\u043c\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e\" title=\"\u0422\u0435\u043c\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e\" width=\"2880\" height=\"1581\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/be3\/2ce\/4fe\/be32ce4fee4d176d93bbbcf417171cdc.png\"\/><figcaption>\u0422\u0435\u043c\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/figcaption><\/figure>\n<h2>\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/h2>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c \u0440\u0430\u043d\u0435\u0435 \u0432 Laravel 8.37. \u0410 \u0437\u0430\u0442\u0435\u043c \u0432 9 &#8212; \u044d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c, \u0438 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>php artisan make:migration<\/code> \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441 \u0431\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0438\u0439 Migration. \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0438 \u0435\u0433\u043e.<\/p>\n<p>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0432 database\/migrations \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php  use Illuminate\\Database\\Migrations\\Migration; use Illuminate\\Database\\Schema\\Blueprint; use Illuminate\\Support\\Facades\\Schema;  return new class extends Migration {     \/**      * Run the migrations.      *      * @return void      *\/     public function up()     {         Schema::create('password_resets', function (Blueprint $table) {             $table->string('email')->index();             $table->string('token');             $table->timestamp('created_at')->nullable();         });     }      \/**      * Reverse the migrations.      *      * @return void      *\/     public function down()     {         Schema::dropIfExists('password_resets');     } };<\/code><\/pre>\n<h2>\u041e\u0431\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/h2>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u043e\u0443\u0442\u0435\u0440\u0430 <em>controller<\/em> \u0438 <em>group,<\/em> \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u043e\u0443\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043b\u044f \u043d\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c. \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430, \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">&lt;?php use \\App\\Http\\Controllers\\UsersController;  Route::get('\/users', [UsersController::class, 'index']); Route::get('\/users\/{id}', [UsersController::class, 'showOne']);<\/code><\/pre>\n<p>\u0422\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"php\">&lt;?php use \\App\\Http\\Controllers\\UsersController;  Route::controller(UsersController::class)->group(function () {   Route::get('\/users', 'index');   Route::get('\/users\/{id}', 'showOne'); });<\/code><\/pre>\n<h2>Scoped Bindings \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445<\/h2>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0443\u0441\u0438\u043b\u0438\u044f\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0430 \u041a\u043b\u0430\u0443\u0434\u0438\u043e \u0414\u0435\u043a\u043a\u0435\u0440\u0430 (<a href=\"https:\/\/dekker.io\/\">Claudio Dekker<\/a>) \u0431\u044b\u043b\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0430 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u041b\u0438\u0447\u043d\u043e \u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0441\u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f, \u043d\u043e \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u0434\u0430 \u0432\u0441\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f &#171;\u044f\u0441\u043d\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u043e&#187;.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e\u0435-\u043a-\u043e\u0434\u043d\u043e\u043c\u0443. \u0422\u043e \u0435\u0441\u0442\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043b. \u0418 \u0432\u043e\u0442 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 url \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439: <code>\/users\/{user}\/posts<\/code>. \u041e\u0442\u0441\u044e\u0434\u0430 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c url \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <code>\/users\/{user}\/posts\/{post}<\/code>.<\/p>\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u0442\u0430\u0442\u044c\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043b\u044e\u0431\u044b\u043c \u043f\u043e\u0441\u0442\u043e\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043d\u043e \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e &#8212; \u0438\u0434\u0435\u044f \u0442\u0430\u043a \u0441\u0435\u0431\u0435. \u041d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <strong>scopeBindings<\/strong> \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0437\u0430 \u043d\u0430\u0441.<\/p>\n<pre><code class=\"php\">&lt;?php  use App\\Models\\Post; use App\\Models\\User;  Route::get('\/users\/{user}\/posts\/{post}', function (User $user, Post $post) {     return $post; })->scopeBindings();<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e (\u0441\u0432\u044f\u0437\u044c \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043a\u043b\u044e\u0447\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c), \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 404 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b85\/a15\/15d\/b85a1515d4df86f8f4878cbe62a1fa88.png\" alt=\"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\" title=\"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\" width=\"1877\" height=\"985\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b85\/a15\/15d\/b85a1515d4df86f8f4878cbe62a1fa88.png\"\/><figcaption>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0440\u043e\u0443\u0442\u044b, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u0430\u0436\u043d\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<pre><code class=\"php\">&lt;?php  Route::scopeBindings()->group(function () {     Route::get('\/users\/{user}\/posts\/{post}', function (User $user, Post $post) {         return $post;     });        Route::get('\/users\/{user}\/comments\/{comment}', function (User $user, Comment $comment         return $comment;     }); });<\/code><\/pre>\n<h2>Laravel Scout<\/h2>\n<p>\u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c Eloquent \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0432\u043e\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u044d\u0442\u043e\u0442 Scout. \u041e\u043d \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0438 \u0434\u0430\u0436\u0435 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0430\u0437\u0430\u0445. \u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u0430 \u0431\u0430\u0437\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b \u043a\u0430\u043a Algolia \u0438\u043b\u0438 MeiliSerach, \u0430 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c Scout \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c MySQL\/PostgreSQL.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Laravel Scout \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430:<\/p>\n<pre><code class=\"haskell\">composer require laravel\/scout php artisan vendor:publish  Which provider or tag's files would you like to publish?:   [0 ] Publish files from all providers and tags listed below   [1 ] Provider: Fruitcake\\Cors\\CorsServiceProvider   [2 ] Provider: Illuminate\\Foundation\\Providers\\FoundationServiceProvider   [3 ] Provider: Illuminate\\Mail\\MailServiceProvider   [4 ] Provider: Illuminate\\Notifications\\NotificationServiceProvider   [5 ] Provider: Illuminate\\Pagination\\PaginationServiceProvider   [6 ] Provider: Laravel\\Sail\\SailServiceProvider   [7 ] Provider: Laravel\\Sanctum\\SanctumServiceProvider   [8 ] Provider: Laravel\\Scout\\ScoutServiceProvider   [9 ] Provider: Laravel\\Tinker\\TinkerServiceProvider   [10] Provider: Spatie\\LaravelIgnition\\IgnitionServiceProvider   [11] Tag: cors   [12] Tag: laravel-errors   [13] Tag: laravel-mail   [14] Tag: laravel-notifications   [15] Tag: laravel-pagination   [16] Tag: sail   [17] Tag: sail-bin   [18] Tag: sail-docker   [19] Tag: sanctum-config   [20] Tag: sanctum-migrations  > 8    Copied File [\/vendor\/laravel\/scout\/config\/scout.php] To [\/config\/scout.php]<\/code><\/pre>\n<p>\u0411\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f Scout. \u0418 \u0432 \u043d\u0435\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 database.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b8f\/12a\/2f2\/b8f12a2f2cae5859646db9aaad5c38f8.png\" alt=\"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0441\u043a\u043e\u0432\u0438\u043a\u0430 Scout\" title=\"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0441\u043a\u043e\u0432\u0438\u043a\u0430 Scout\" width=\"2237\" height=\"1228\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b8f\/12a\/2f2\/b8f12a2f2cae5859646db9aaad5c38f8.png\"\/><figcaption>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0441\u043a\u043e\u0432\u0438\u043a\u0430 Scout<\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 &#8212; \u043c\u043e\u0434\u0435\u043b\u044f\u0445, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u043e\u043b\u044f\u043c. \u0418 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0440\u0435\u0439\u0442 Searchable \u043a \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u043e\u0438\u0441\u043a\u0430. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u043d\u0438\u0436\u0435, \u043a\u0440\u043e\u043c\u0435 \u0438\u043c\u0435\u043d\u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u0438\u0441\u043a \u0438 \u043a \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044e <em>bio<\/em> (\u0431\u0438\u043e\u0433\u0440\u0430\u0444\u0438\u044f).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5aa\/ed9\/6db\/5aaed96db6f22cbddec1e93efd58033a.png\" alt=\"\u041c\u0435\u0442\u043e\u0434 toSearchableArray \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430\" title=\"\u041c\u0435\u0442\u043e\u0434 toSearchableArray \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430\" width=\"2880\" height=\"1741\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5aa\/ed9\/6db\/5aaed96db6f22cbddec1e93efd58033a.png\"\/><figcaption>\u041c\u0435\u0442\u043e\u0434 toSearchableArray \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430<\/figcaption><\/figure>\n<p>\u041f\u043e\u0438\u0449\u0435\u043c \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 \u0431\u0438\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0435\u0441\u0442\u044c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0432 \u0412\u0423\u0417\u0435.<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () {     return \\App\\Models\\User::search('\u0438\u043d\u0441\u0442\u0438\u0442\u0443\u0442')->get(); })->name('home');<\/code><\/pre>\n<h2>\u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0442\u0430\u043a\u0438\u043c\u0438 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0411\u0414 \u043a\u0430\u043a MySQL \u0438\u043b\u0438 PostgreSQL, \u0442\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u044f\u043c \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e. \u041f\u0440\u0438 \u0447\u0435\u043c \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php  $table->text('bio')->fulltext();<\/code><\/pre>\n<p>\u041f\u043e \u0442\u0430\u043a\u0438\u043c \u043f\u043e\u043b\u044f\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 <strong>whereFullText<\/strong> \u0438 <strong>orWhereFullText<\/strong>, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0438\u0445 \u043a\u0430\u043a \u0443\u0441\u043b\u043e\u0432\u0438\u0435 where. \u042d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442\u0441\u044f \u0432 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<pre><code class=\"php\">&lt;?php  $users = DB::table('users')            ->whereFullText('bio', 'php developer')            ->get();<\/code><\/pre>\n<h2>\u041f\u043e\u043a\u0440\u044b\u0442\u0438\u0435 \u043a\u043e\u0434\u0430 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/h2>\n<p>\u0412 Laravel 9 \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0438 \u043a\u043e\u0434\u0430 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <em>php artisan test<\/em>. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/117\/980\/ad4\/117980ad49a6c26dcb5465aa781a2809.png\" alt=\"\u0422\u0435\u0441\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438\u0441\u044c\" title=\"\u0422\u0435\u0441\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438\u0441\u044c\" width=\"1750\" height=\"898\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/117\/980\/ad4\/117980ad49a6c26dcb5465aa781a2809.png\"\/><figcaption>\u0422\u0435\u0441\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0438\u0441\u044c<\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0435\u0441\u0442\u043e\u0432, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c 2 \u043d\u043e\u0432\u044b\u0445 \u043a\u043b\u044e\u0447\u0430 <code>--coverage<\/code> \u0438 <code>--min[=MIN]<\/code>.<\/p>\n<pre><code class=\"bash\">php artisan help test  Usage:   test [options]  Options:       --without-tty         Disable output to TTY       --coverage            Indicates whether code coverage information should be collected       --min[=MIN]           Indicates the minimum threshold enforcement for code coverage<\/code><\/pre>\n<p><em>Coverage<\/em> &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<p><em>Min<\/em> &#8212; \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043d\u0430\u0441 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u0435\u043d.<\/p>\n<p>\u042f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043d\u043e \u0432\u0438\u0436\u0443 \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/840\/53a\/3b9\/84053a3b9edd6ccf970c6f826698aef9.png\" alt=\"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b\" title=\"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b\" width=\"1753\" height=\"921\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/840\/53a\/3b9\/84053a3b9edd6ccf970c6f826698aef9.png\"\/><figcaption>\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/figcaption><\/figure>\n<p>\u041d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0434\u0440\u0430\u0439\u0432\u0435\u0440, \u043d\u043e, \u0434\u0443\u043c\u0430\u044e, \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 Xdebug \u0434\u043b\u044f php. \u041a\u0430\u043a \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c, \u0443 \u043c\u0435\u043d\u044f MacOS, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0443, \u0447\u0442\u043e \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u041e\u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435.<\/p>\n<pre><code class=\"bash\">pecl install xdebug brew services restart php brew services restart nginx<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7f4\/adb\/ff2\/7f4adbff27927b8cfd6809e3e4ea798c.png\" alt=\"\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 xdebug \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432\" title=\"\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 xdebug \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432\" width=\"1749\" height=\"899\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7f4\/adb\/ff2\/7f4adbff27927b8cfd6809e3e4ea798c.png\"\/><figcaption>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 xdebug \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/figcaption><\/figure>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443, \u043d\u043e \u043d\u0435\u0442, \u043e\u043f\u044f\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/935\/a5b\/ad2\/935a5bad2faab4ba2659b06655ce5dc7.png\" alt=\"Xdebug \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f :(\" title=\"Xdebug \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f :(\" width=\"1733\" height=\"888\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/935\/a5b\/ad2\/935a5bad2faab4ba2659b06655ce5dc7.png\"\/><figcaption>Xdebug \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \ud83d\ude41<\/figcaption><\/figure>\n<p>Xdebug \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0440\u0435\u0436\u0438\u043c \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430 \u0442\u0435\u0441\u0442\u0430\u043c\u0438. \u042d\u0442\u043e \u043c\u044b \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438 \u0432\u0438\u0434\u0438\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/757\/8aa\/dbb\/7578aadbb23e3f018b71eca8b45fff8b.png\" width=\"1737\" height=\"1113\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/757\/8aa\/dbb\/7578aadbb23e3f018b71eca8b45fff8b.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u0432 \u043a\u043e\u043d\u0446\u0435<\/h2>\n<p>\u0421 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430, \u043c\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u043d\u0435\u043c\u0430\u043b\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0437\u044b\u043a\u0430. \u041c\u044b \u0443\u0436\u0435 \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u0434\u0432\u0430 \u043f\u0430\u0442\u0447\u0430, \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u043e\u0438\u043d \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430. \u041d\u043e \u043c\u043e\u0438 \u0440\u0443\u043a\u0438 \u0443\u0436\u0435 \u0447\u0435\u0448\u0443\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 9 \u0432\u0435\u0440\u0441\u0438\u0438 Laravel.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/reksoft\/blog\/651553\/\"> https:\/\/habr.com\/ru\/company\/reksoft\/blog\/651553\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption>\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u00a9 GOLTS<\/figcaption><\/figure>\n<p>\u042f \u0441\u0440\u0430\u0437\u0443, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e \u0440\u0435\u043b\u0438\u0437\u0435, \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0447\u0435\u0433\u043e \u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u0414\u0430-\u0434\u0430, \u043d\u0430 \u0434\u043d\u044f\u0445, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e 8 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2022, \u0432\u044b\u0448\u0435\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 Laravel 9, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043d\u043e\u0432\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439. \u0414\u043b\u044f \u0442\u0435\u0445 \u0436\u0435 \u0438\u0437 \u043d\u0430\u0441, \u043a\u0442\u043e \u043d\u0435 \u0431\u043e\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u043e\u0432, \u043a\u0430\u043a alfa \u0438 beta, \u0434\u0435\u0432\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u0438 \u0443\u0436\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u043b\u044c\u0448\u0435 (LTS), \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u0436\u0434\u044b\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432, \u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0437 \u0432 \u0433\u043e\u0434 &#8212; \u0432 \u0444\u0435\u0432\u0440\u0430\u043b\u0435. \u0421\u0443\u0434\u044f \u0438\u0437 <a href=\"https:\/\/laravel.com\/docs\/master\/releases#support-policy\"><u>\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/u><\/a><u>,<\/u> \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u043e\u0434, \u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e 2025 \u0433\u043e\u0434\u0430.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p><strong>\u0412\u0435\u0440\u0441\u0438\u044f<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p><strong>\u042f\u0437\u044b\u043a<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p><strong>\u0414\u0430\u0442\u0430 \u0440\u0435\u043b\u0438\u0437\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0412\u044b\u043f\u0443\u0441\u043a \u0431\u0430\u0433\u0444\u0438\u043a\u0441\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0412\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u0442\u0447\u0435\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>6 (LTS)<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.2 &#8212; 8.0<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>3 \u0441\u0435\u043d 2019<\/p>\n<\/td>\n<td>\n<p>25 \u044f\u043d\u0432 2022<\/p>\n<\/td>\n<td>\n<p>6 \u0441\u0435\u043d 2022<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>7<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.2 &#8212; 8.0<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>3 \u043c\u0430\u0440\u0442\u0430 2020<\/p>\n<\/td>\n<td>\n<p>6 \u043e\u043a\u0442 2020<\/p>\n<\/td>\n<td>\n<p>3 \u043c\u0430\u0440\u0442\u0430 2021<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>8<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>7.3 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>8 \u0441\u0435\u043d 2020<\/p>\n<\/td>\n<td>\n<p>26 \u0438\u044e\u043b\u044f 2022<\/p>\n<\/td>\n<td>\n<p>24 \u044f\u043d\u0432 2023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>9 (LTS)<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>8.0 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>8 \u0444\u0435\u0432 2022<\/p>\n<\/td>\n<td>\n<p>8 \u0444\u0435\u0432 2024<\/p>\n<\/td>\n<td>\n<p>8 \u0444\u0435\u0432 2025<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"98\" width=\"98\">\n<p>10<\/p>\n<\/td>\n<td data-colwidth=\"93\" width=\"93\">\n<p>8.0 &#8212; 8.1<\/p>\n<\/td>\n<td data-colwidth=\"149\" width=\"149\">\n<p>7 \u0444\u0435\u0432 2023<\/p>\n<\/td>\n<td>\n<p>7 \u0430\u0432\u0433 2024<\/p>\n<\/td>\n<td>\n<p>7 \u0444\u0435\u0432 2025<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u0412\u0435\u0440\u0441\u0438\u044f \u044f\u0437\u044b\u043a\u0430<\/h2>\n<p>\u041d\u043e\u0432\u044b\u0439 Laravel \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 php 8.0 \u0438 \u0432\u044b\u0448\u0435. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0442\u0430\u043a? \u041a\u0430\u043a \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0434\u0430\u043b\u0435\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u043e\u043f\u043b\u043e\u0442\u0438\u043b\u0438 \u0432 \u0434\u0435\u0432\u044f\u0442\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u043d\u0435\u043c\u0430\u043b\u043e \u0444\u0438\u0448\u0435\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0437\u044b\u043a\u0430, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 php7 \u043e\u0437\u043d\u0430\u0447\u0430\u043b\u043e \u0431\u044b \u043f\u043e\u0442\u0435\u0440\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439.<\/p>\n<pre><code class=\"bash\">composer create-project laravel\/laravel example-app<\/code><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u0430 \u0435\u0435 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>laravel\/framework<\/code> \u0432\u0435\u0440\u0441\u0438\u0438 <em>v9.0.2<\/em>. \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0440\u0435\u043b\u0438\u0437\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0443\u0436\u0435 \u043f\u0430\u0442\u0447\u0430\u0442.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041d\u043e\u0432\u044b\u0435 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0438<\/h2>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0434\u0432\u0435 \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u0443\u0436\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f <a href=\"https:\/\/laravel.com\/docs\/9.x\/helpers#method-str\">\u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/a> <strong>str<\/strong> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Illuminate\\Support\\Stringable<\/code> \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043a \u0442\u0435\u043a\u0441\u0442\u0443 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443. \u0422\u0430\u043a\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0438 \u0432 8 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0447\u0435\u0440\u0435\u0437 <code>Str::of<\/code>, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u0435\u0435.<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () {     return str('Hello, ') \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438       ->append('Max')     \/\/ \u041c\u0435\u0442\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u043e\u043a\u0438       ->upper();          \/\/ \u041c\u0435\u0442\u043e\u0434 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u0431\u0443\u043a\u0432\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 });<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <strong>to_route<\/strong> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u043e\u0443\u0442 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0439 \u043a\u0430\u043a \u0432 \u043d\u0430\u0448\u0438\u0445 \u0440\u043e\u0443\u0442\u0430\u0445, \u0442\u0430\u043a \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<pre><code class=\"php\">&lt;?php  \/\/ \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 Route::get('\/', function () {     return view('welcome'); })->name('home'); \/\/ \u0418\u043c\u044f \u0440\u043e\u0443\u0442\u0430 \u0434\u043b\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b  \/\/ \u0421\u0442\u0430\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0440\u043e\u0443\u0442\u0430 Route::get('\/test', function () {     return redirect()->route('home'); });  \/\/ \u041d\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 to_route Route::get('\/new_test', function () {     return to_route('home'); });<\/code><\/pre>\n<p>\u0410 \u0435\u0449\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u043e\u0443\u0442\u0430, \u0441\u0442\u0430\u0442\u0443\u0441 HTTP \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438:<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () { return to_route('users.show',    \/\/ \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0443\u0442\u0430   ['user' => 1],                 \/\/ \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u043e\u0443\u0442\u0430     302,                           \/\/ \u041a\u043e\u0434 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430     ['X-Framework' => 'Laravel']); \/\/ \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 });<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 PHP 8, \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 <code>\\Illuminate\\Support\\Str<\/code> \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0442\u0430\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043a\u0430\u043a <code>str_contains()<\/code>, <code>str_starts_with()<\/code> \u0438 <code>str_ends_with()<\/code>.<\/p>\n<h2>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/h2>\n<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u0430 \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0438 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0435\u0439 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u044b \u043d\u0430 \u0441\u0432\u0435\u0442\u043b\u0443\u044e\/\u0442\u0435\u043c\u043d\u0443\u044e, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 &#171;\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435&#187; \u0438 \u0434\u0440.<\/p>\n<figure class=\"full-width\"><figcaption>\u0422\u0435\u043c\u043d\u043e\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c Dracula \u0432 IDE<\/figcaption><\/figure>\n<p>\u041d\u0438\u0436\u0435 \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>\u0422\u0435\u043c\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/figcaption><\/figure>\n<h2>\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/h2>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c \u0440\u0430\u043d\u0435\u0435 \u0432 Laravel 8.37. \u0410 \u0437\u0430\u0442\u0435\u043c \u0432 9 &#8212; \u044d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c, \u0438 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>php artisan make:migration<\/code> \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441 \u0431\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0438\u0439 Migration. \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0438 \u0435\u0433\u043e.<\/p>\n<p>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0432 database\/migrations \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php  use Illuminate\\Database\\Migrations\\Migration; use Illuminate\\Database\\Schema\\Blueprint; use Illuminate\\Support\\Facades\\Schema;  return new class extends Migration {     \/**      * Run the migrations.      *      * @return void      *\/     public function up()     {         Schema::create('password_resets', function (Blueprint $table) {             $table->string('email')->index();             $table->string('token');             $table->timestamp('created_at')->nullable();         });     }      \/**      * Reverse the migrations.      *      * @return void      *\/     public function down()     {         Schema::dropIfExists('password_resets');     } };<\/code><\/pre>\n<h2>\u041e\u0431\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/h2>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u043e\u0443\u0442\u0435\u0440\u0430 <em>controller<\/em> \u0438 <em>group,<\/em> \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u043e\u0443\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043b\u044f \u043d\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c. \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430, \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">&lt;?php use \\App\\Http\\Controllers\\UsersController;  Route::get('\/users', [UsersController::class, 'index']); Route::get('\/users\/{id}', [UsersController::class, 'showOne']);<\/code><\/pre>\n<p>\u0422\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"php\">&lt;?php use \\App\\Http\\Controllers\\UsersController;  Route::controller(UsersController::class)->group(function () {   Route::get('\/users', 'index');   Route::get('\/users\/{id}', 'showOne'); });<\/code><\/pre>\n<h2>Scoped Bindings \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445<\/h2>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0443\u0441\u0438\u043b\u0438\u044f\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0437 \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0430 \u041a\u043b\u0430\u0443\u0434\u0438\u043e \u0414\u0435\u043a\u043a\u0435\u0440\u0430 (<a href=\"https:\/\/dekker.io\/\">Claudio Dekker<\/a>) \u0431\u044b\u043b\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0430 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u041b\u0438\u0447\u043d\u043e \u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0441\u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f, \u043d\u043e \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u0434\u0430 \u0432\u0441\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f &#171;\u044f\u0441\u043d\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u043e&#187;.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e\u0435-\u043a-\u043e\u0434\u043d\u043e\u043c\u0443. \u0422\u043e \u0435\u0441\u0442\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043b. \u0418 \u0432\u043e\u0442 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 url \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439: <code>\/users\/{user}\/posts<\/code>. \u041e\u0442\u0441\u044e\u0434\u0430 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c url \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <code>\/users\/{user}\/posts\/{post}<\/code>.<\/p>\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u0442\u0430\u0442\u044c\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043b\u044e\u0431\u044b\u043c \u043f\u043e\u0441\u0442\u043e\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043d\u043e \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e &#8212; \u0438\u0434\u0435\u044f \u0442\u0430\u043a \u0441\u0435\u0431\u0435. \u041d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <strong>scopeBindings<\/strong> \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0437\u0430 \u043d\u0430\u0441.<\/p>\n<pre><code class=\"php\">&lt;?php  use App\\Models\\Post; use App\\Models\\User;  Route::get('\/users\/{user}\/posts\/{post}', function (User $user, Post $post) {     return $post; })->scopeBindings();<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e (\u0441\u0432\u044f\u0437\u044c \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043a\u043b\u044e\u0447\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c), \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 404 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<figure class=\"full-width\"><figcaption>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0440\u043e\u0443\u0442\u044b, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u0430\u0436\u043d\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<pre><code class=\"php\">&lt;?php  Route::scopeBindings()->group(function () {     Route::get('\/users\/{user}\/posts\/{post}', function (User $user, Post $post) {         return $post;     });        Route::get('\/users\/{user}\/comments\/{comment}', function (User $user, Comment $comment         return $comment;     }); });<\/code><\/pre>\n<h2>Laravel Scout<\/h2>\n<p>\u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c Eloquent \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0432\u043e\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u044d\u0442\u043e\u0442 Scout. \u041e\u043d \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0438 \u0434\u0430\u0436\u0435 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0430\u0437\u0430\u0445. \u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u0430 \u0431\u0430\u0437\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b \u043a\u0430\u043a Algolia \u0438\u043b\u0438 MeiliSerach, \u0430 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c Scout \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c MySQL\/PostgreSQL.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Laravel Scout \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430:<\/p>\n<pre><code class=\"haskell\">composer require laravel\/scout php artisan vendor:publish  Which provider or tag's files would you like to publish?:   [0 ] Publish files from all providers and tags listed below   [1 ] Provider: Fruitcake\\Cors\\CorsServiceProvider   [2 ] Provider: Illuminate\\Foundation\\Providers\\FoundationServiceProvider   [3 ] Provider: Illuminate\\Mail\\MailServiceProvider   [4 ] Provider: Illuminate\\Notifications\\NotificationServiceProvider   [5 ] Provider: Illuminate\\Pagination\\PaginationServiceProvider   [6 ] Provider: Laravel\\Sail\\SailServiceProvider   [7 ] Provider: Laravel\\Sanctum\\SanctumServiceProvider   [8 ] Provider: Laravel\\Scout\\ScoutServiceProvider   [9 ] Provider: Laravel\\Tinker\\TinkerServiceProvider   [10] Provider: Spatie\\LaravelIgnition\\IgnitionServiceProvider   [11] Tag: cors   [12] Tag: laravel-errors   [13] Tag: laravel-mail   [14] Tag: laravel-notifications   [15] Tag: laravel-pagination   [16] Tag: sail   [17] Tag: sail-bin   [18] Tag: sail-docker   [19] Tag: sanctum-config   [20] Tag: sanctum-migrations  > 8    Copied File [\/vendor\/laravel\/scout\/config\/scout.php] To [\/config\/scout.php]<\/code><\/pre>\n<p>\u0411\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f Scout. \u0418 \u0432 \u043d\u0435\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 database.<\/p>\n<figure class=\"full-width\"><figcaption>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0441\u043a\u043e\u0432\u0438\u043a\u0430 Scout<\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 &#8212; \u043c\u043e\u0434\u0435\u043b\u044f\u0445, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u043e\u043b\u044f\u043c. \u0418 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0440\u0435\u0439\u0442 Searchable \u043a \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u043e\u0438\u0441\u043a\u0430. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u043d\u0438\u0436\u0435, \u043a\u0440\u043e\u043c\u0435 \u0438\u043c\u0435\u043d\u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u0438\u0441\u043a \u0438 \u043a \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044e <em>bio<\/em> (\u0431\u0438\u043e\u0433\u0440\u0430\u0444\u0438\u044f).<\/p>\n<figure class=\"full-width\"><figcaption>\u041c\u0435\u0442\u043e\u0434 toSearchableArray \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430<\/figcaption><\/figure>\n<p>\u041f\u043e\u0438\u0449\u0435\u043c \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 \u0431\u0438\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0435\u0441\u0442\u044c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0432 \u0412\u0423\u0417\u0435.<\/p>\n<pre><code class=\"php\">&lt;?php  Route::get('\/', function () {     return \\App\\Models\\User::search('\u0438\u043d\u0441\u0442\u0438\u0442\u0443\u0442')->get(); })->name('home');<\/code><\/pre>\n<h2>\u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0442\u0430\u043a\u0438\u043c\u0438 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0411\u0414 \u043a\u0430\u043a MySQL \u0438\u043b\u0438 PostgreSQL, \u0442\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u044f\u043c \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e. \u041f\u0440\u0438 \u0447\u0435\u043c \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php  $table->text('bio')->fulltext();<\/code><\/pre>\n<p>\u041f\u043e \u0442\u0430\u043a\u0438\u043c \u043f\u043e\u043b\u044f\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c<\/p>\n<\/div>\n<\/div>\n<\/div>\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-329733","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329733","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=329733"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329733\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}