{"id":370907,"date":"2024-05-21T04:36:14","date_gmt":"2024-05-21T04:36:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=370907"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=370907","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 Laravel c 10-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 11-\u044e<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f, 12 \u043c\u0430\u0440\u0442\u0430 2024, \u0433\u043e\u0434\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0448\u043b\u0430 <a href=\"https:\/\/blog.laravel.com\/laravel-11-now-available?ref=x\" rel=\"noopener noreferrer nofollow\">Laravel 11<\/a>. \u0421\u043f\u0443\u0441\u0442\u044f \u0447\u0430\u0441 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 Laravel 10 \u0434\u043e 11-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0418 \u0432\u043e\u0442, \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c, \u043a\u0430\u043a \u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c. \u041f\u043e\u0433\u043d\u0430\u043b\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Laravel 10. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043d\u0451\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Inertia.js (Vue 3), Laravel Octane (swoole), Laravel Sanctum. \u041d\u0443 \u0438 PostreSQL 15, minio, redis, mailhog, \u043d\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u044f \u043f\u043e\u0448\u0451\u043b \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 laravel \u0438 \u043d\u0430\u0448\u0451\u043b <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/a> \u0441 10-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043e 11-\u0439, \u0438 \u043f\u043e\u0448\u0451\u043b \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade#updating-dependencies\" rel=\"noopener noreferrer nofollow\">composer.json<\/a>. \u0412\u043e\u0442 \u0443 \u043c\u0435\u043d\u044f \u043e\u043d \u0441\u0442\u0430\u043b \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"json\">    \"require\": {         \"php\": \"^8.2\",         \"doctrine\/dbal\": \"^3.0\",         \"godruoyi\/php-snowflake\": \"^2.1\",         \"guzzlehttp\/guzzle\": \"^7.2\",         \"inertiajs\/inertia-laravel\": \"^1.0\",         \"laminas\/laminas-diactoros\": \"^3.3\",         \"laravel\/framework\": \"^11.0\",         \"laravel\/octane\": \"^v2.3.4\",         \"laravel\/sanctum\": \"^4.0\",         \"laravel\/tinker\": \"^2.7\",         \"league\/flysystem-aws-s3-v3\": \"^3.0\",         \"livewire\/livewire\": \"^3.4\",         \"predis\/predis\": \"^2.0\",         \"tightenco\/ziggy\": \"^1.0\"     },     \"require-dev\": {         \"fakerphp\/faker\": \"^1.9.1\",         \"laravel\/breeze\": \"^2.0\",         \"laravel\/pint\": \"^1.0\",         \"laravel\/sail\": \"^1.0.1\",         \"mockery\/mockery\": \"^1.4.4\",         \"nunomaduro\/collision\": \"^8.0\",         \"phpunit\/phpunit\": \"^10.0\",         \"spatie\/laravel-ignition\": \"^2.0\"     }, <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>composer update<\/code> (\u0432\u0435\u0440\u043d\u0435\u0435 <code>.\/sail composer update<\/code>, \u043d\u043e \u044d\u0442\u043e \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0441\u0451 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 \u0434\u043e\u043a\u0435\u0440\u0435), \u0438 \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438&#8230; \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u044f Laravel \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c. \u0412\u0441\u0451, my congratulations, \u0443 \u0432\u0430\u0441 \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0432\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u043e 11-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Laravel.<\/p>\n<p>\u041d\u043e \u044f \u0431\u044b \u043d\u0435 \u0431\u044b\u043b \u043c\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0451 \u0442\u043e, \u0447\u0442\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=R3CB3ctuz3k\" rel=\"noopener noreferrer nofollow\">\u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438<\/a> \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u0430\u043a \u0447\u0442\u043e &#171;\u0438\u0434\u0451\u043c \u043f\u043e \u043d\u0435\u043a\u0441\u0435\u043b\u044e&#187;, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u043e\u0434\u0438\u043d \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0442\u0440\u0438\u043c\u0435\u0440. \u041f\u043e \u043f\u0443\u0442\u0438 <code>.\/bootstrap<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b\u0438\u043a <code>providers.php<\/code>, \u043a\u0443\u0434\u0430 \u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"php\">&lt;?php  \/\/ \u0422\u0443\u0442 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 return [     \\App\\Providers\\AppServiceProvider::class,     \\App\\Providers\\AuthServiceProvider::class,     \\App\\Providers\\BroadcastServiceProvider::class,     \\App\\Providers\\EventServiceProvider::class,     \\App\\Providers\\RepositoryServiceProvider::class,     \\App\\Providers\\RouteServiceProvider::class ]; <\/code><\/pre>\n<p>\u0418 \u0434\u0430\u043b\u044c\u0448\u0435, \u0432 \u044d\u0442\u043e\u0439 \u0436\u0435 \u043f\u0430\u043f\u043a\u0435, \u0432 \u0444\u0430\u0439\u043b\u0438\u043a\u0435 <code>app.php<\/code> \u0441\u043d\u043e\u0441\u0438\u043c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043a \u0447\u0435\u0440\u0442\u043e\u0432\u043e\u0439 \u0431\u0430\u0431\u0443\u0448\u043a\u0435 \u0438 \u043f\u0438\u0448\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<pre><code class=\"php\">&lt;?php      use App\\Http\\Middleware\\EncryptCookies; use App\\Http\\Middleware\\HandleInertiaRequests; \/\/ \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f Inertia.js, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u043d\u0435\u0442 - \u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u044e\u0437\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440 use Illuminate\\Foundation\\Application; use Illuminate\\Foundation\\Configuration\\Exceptions; use Illuminate\\Foundation\\Configuration\\Middleware;  $application = Application::configure()     ->withProviders()     ->withRouting(         web: __DIR__.'\/..\/routes\/web.php',         api: __DIR__.'\/..\/routes\/api.php',         commands: __DIR__.'\/..\/routes\/console.php',         channels: __DIR__.'\/..\/routes\/channels.php',     )     ->withMiddleware(function (Middleware $middleware) {         $middleware->web(append: [             HandleInertiaRequests::class, \/\/ \u044d\u0442\u043e \u043e\u0442 Inertia.js, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e Inertia \u0431\u0443\u0434\u0435\u0442 \u043a\u0438\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 \"props 'user' \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\"         ], replace: [             \\Illuminate\\Cookie\\Middleware\\EncryptCookies::class => EncryptCookies::class, \/\/ \u0442\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440 EncryptCookies \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e cookies \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u044b \u043a\u0430\u043a $except, \u0438\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 cookies             \/\/ \u0412\u043e\u043e\u0431\u0449\u0435, \u044d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043c\u0435\u043d\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043c\u0438\u0434\u0434\u043b\u0432\u0435\u0439\u0440\u043e\u0432 - \u043e\u043d\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0430\u0434\u044f\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u044f\u0434\u0440\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u043c\u0438\u043d\u0443\u044f Kernel.php             \/\/ \u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442 https:\/\/laravel.com\/docs\/11.x\/middleware#laravels-default-middleware-groups             \/\/ \u0418 \u0442\u0443\u0442 https:\/\/laravel.com\/docs\/11.x\/middleware#laravels-default-middleware-groups         ]);                  \/*          \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0430\u043b\u0438\u0430\u0441\u044b \u043c\u0438\u0434\u0434\u043b\u0432\u0435\u0439\u0440\u043e\u0432         $middleware->alias([             'check' => CheckMiddleware::class,         ]);*\/     })     ->withExceptions(function (Exceptions $exceptions) {         \/\/ \u0442\u0443\u0442 \u0436\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0438 Exceptions, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 app\/Exceptions\/Handler.php     })     \/*     \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b     ->withCommands([         __DIR__.'\/..\/app\/Console\/Commands\/CreateAdminCommand.php',     ])*\/     ->create();  return $application;  <\/code><\/pre>\n<p>\u0412\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440\u0430\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a href=\"https:\/\/laravel.com\/docs\/11.x\/middleware\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442 \u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\u0438\u043a\u0435 <code>artisan<\/code> \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442:<\/p>\n<pre><code class=\"php\">#!\/usr\/bin\/env php &lt;?php  use Symfony\\Component\\Console\\Input\\ArgvInput;  define('LARAVEL_START', microtime(true));  \/\/ Register the Composer autoloader... require __DIR__.'\/vendor\/autoload.php';  \/\/ Bootstrap Laravel and handle the command... $status = (require_once __DIR__.'\/bootstrap\/app.php')     ->handleCommand(new ArgvInput);  exit($status);  <\/code><\/pre>\n<p>\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre><code>app\/Http\/Kernel.php app\/Exceptions\/Handler.php app\/Console\/Kernel.php <\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0410 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438, \u0441\u043f\u0440\u043e\u0441\u0438\u0442 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c?<\/p>\n<p>\u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f:<\/p>\n<pre><code>PHP Warning:  require(\/var\/www\/html\/vendor\/composer\/..\/laminas\/laminas-diactoros\/src\/functions\/marshal_uri_from_sapi.php): Failed to open stream: No such file or directory in \/var\/www\/html\/vendor\/composer\/autoload_real.php on line 41 <\/code><\/pre>\n<p>\u041f\u043e\u043c\u043e\u0433\u043b\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 <code>composer require laminas\/laminas-diactoros<\/code>, \u0430 \u0441\u043d\u043e\u0441 \u0432\u0441\u0435\u0439 \u043f\u0430\u043f\u043a\u0438 <code>.\/vendor\/<\/code> \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0441\u0435\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0437\u0430\u043d\u043e\u0432\u043e (<code>composer install<\/code> \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e \u0437\u0430\u0431\u044b\u043b).<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0441 \u043a\u0430\u0439\u0444\u043e\u043c \u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Laravel, \u043d\u0438 \u0432 \u0447\u0451\u043c \u0441\u0435\u0431\u0435 \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u044f. \u0418 \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0430\u0439\u0434, \u0430 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043b\u0438 \u044f \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b &#8212; \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade\" rel=\"noopener noreferrer nofollow\">\u0433\u0430\u0439\u0434\u0435<\/a>. \u041f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0432\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438.<\/p>\n<hr\/>\n<blockquote>\n<p><a href=\"https:\/\/t.me\/fromidiottojunior\" rel=\"noopener noreferrer nofollow\">\u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c<\/a> \u043a\u0430\u043d\u0430\u043b \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440. \u041d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c.<\/p>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/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\/articles\/800497\/\"> https:\/\/habr.com\/ru\/articles\/800497\/<\/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 article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f, 12 \u043c\u0430\u0440\u0442\u0430 2024, \u0433\u043e\u0434\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0448\u043b\u0430 <a href=\"https:\/\/blog.laravel.com\/laravel-11-now-available?ref=x\" rel=\"noopener noreferrer nofollow\">Laravel 11<\/a>. \u0421\u043f\u0443\u0441\u0442\u044f \u0447\u0430\u0441 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 Laravel 10 \u0434\u043e 11-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0418 \u0432\u043e\u0442, \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c, \u043a\u0430\u043a \u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c. \u041f\u043e\u0433\u043d\u0430\u043b\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Laravel 10. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043d\u0451\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Inertia.js (Vue 3), Laravel Octane (swoole), Laravel Sanctum. \u041d\u0443 \u0438 PostreSQL 15, minio, redis, mailhog, \u043d\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u044f \u043f\u043e\u0448\u0451\u043b \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 laravel \u0438 \u043d\u0430\u0448\u0451\u043b <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/a> \u0441 10-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043e 11-\u0439, \u0438 \u043f\u043e\u0448\u0451\u043b \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade#updating-dependencies\" rel=\"noopener noreferrer nofollow\">composer.json<\/a>. \u0412\u043e\u0442 \u0443 \u043c\u0435\u043d\u044f \u043e\u043d \u0441\u0442\u0430\u043b \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"json\">    \"require\": {         \"php\": \"^8.2\",         \"doctrine\/dbal\": \"^3.0\",         \"godruoyi\/php-snowflake\": \"^2.1\",         \"guzzlehttp\/guzzle\": \"^7.2\",         \"inertiajs\/inertia-laravel\": \"^1.0\",         \"laminas\/laminas-diactoros\": \"^3.3\",         \"laravel\/framework\": \"^11.0\",         \"laravel\/octane\": \"^v2.3.4\",         \"laravel\/sanctum\": \"^4.0\",         \"laravel\/tinker\": \"^2.7\",         \"league\/flysystem-aws-s3-v3\": \"^3.0\",         \"livewire\/livewire\": \"^3.4\",         \"predis\/predis\": \"^2.0\",         \"tightenco\/ziggy\": \"^1.0\"     },     \"require-dev\": {         \"fakerphp\/faker\": \"^1.9.1\",         \"laravel\/breeze\": \"^2.0\",         \"laravel\/pint\": \"^1.0\",         \"laravel\/sail\": \"^1.0.1\",         \"mockery\/mockery\": \"^1.4.4\",         \"nunomaduro\/collision\": \"^8.0\",         \"phpunit\/phpunit\": \"^10.0\",         \"spatie\/laravel-ignition\": \"^2.0\"     }, <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>composer update<\/code> (\u0432\u0435\u0440\u043d\u0435\u0435 <code>.\/sail composer update<\/code>, \u043d\u043e \u044d\u0442\u043e \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0441\u0451 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 \u0434\u043e\u043a\u0435\u0440\u0435), \u0438 \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438&#8230; \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u044f Laravel \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c. \u0412\u0441\u0451, my congratulations, \u0443 \u0432\u0430\u0441 \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0432\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u043e 11-\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Laravel.<\/p>\n<p>\u041d\u043e \u044f \u0431\u044b \u043d\u0435 \u0431\u044b\u043b \u043c\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0451 \u0442\u043e, \u0447\u0442\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=R3CB3ctuz3k\" rel=\"noopener noreferrer nofollow\">\u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438<\/a> \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u0430\u043a \u0447\u0442\u043e &#171;\u0438\u0434\u0451\u043c \u043f\u043e \u043d\u0435\u043a\u0441\u0435\u043b\u044e&#187;, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u043e\u0434\u0438\u043d \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u0442\u0440\u0438\u043c\u0435\u0440. \u041f\u043e \u043f\u0443\u0442\u0438 <code>.\/bootstrap<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b\u0438\u043a <code>providers.php<\/code>, \u043a\u0443\u0434\u0430 \u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"php\">&lt;?php  \/\/ \u0422\u0443\u0442 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 return [     \\App\\Providers\\AppServiceProvider::class,     \\App\\Providers\\AuthServiceProvider::class,     \\App\\Providers\\BroadcastServiceProvider::class,     \\App\\Providers\\EventServiceProvider::class,     \\App\\Providers\\RepositoryServiceProvider::class,     \\App\\Providers\\RouteServiceProvider::class ]; <\/code><\/pre>\n<p>\u0418 \u0434\u0430\u043b\u044c\u0448\u0435, \u0432 \u044d\u0442\u043e\u0439 \u0436\u0435 \u043f\u0430\u043f\u043a\u0435, \u0432 \u0444\u0430\u0439\u043b\u0438\u043a\u0435 <code>app.php<\/code> \u0441\u043d\u043e\u0441\u0438\u043c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043a \u0447\u0435\u0440\u0442\u043e\u0432\u043e\u0439 \u0431\u0430\u0431\u0443\u0448\u043a\u0435 \u0438 \u043f\u0438\u0448\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<pre><code class=\"php\">&lt;?php      use App\\Http\\Middleware\\EncryptCookies; use App\\Http\\Middleware\\HandleInertiaRequests; \/\/ \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f Inertia.js, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u043d\u0435\u0442 - \u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u044e\u0437\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440 use Illuminate\\Foundation\\Application; use Illuminate\\Foundation\\Configuration\\Exceptions; use Illuminate\\Foundation\\Configuration\\Middleware;  $application = Application::configure()     ->withProviders()     ->withRouting(         web: __DIR__.'\/..\/routes\/web.php',         api: __DIR__.'\/..\/routes\/api.php',         commands: __DIR__.'\/..\/routes\/console.php',         channels: __DIR__.'\/..\/routes\/channels.php',     )     ->withMiddleware(function (Middleware $middleware) {         $middleware->web(append: [             HandleInertiaRequests::class, \/\/ \u044d\u0442\u043e \u043e\u0442 Inertia.js, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e Inertia \u0431\u0443\u0434\u0435\u0442 \u043a\u0438\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 \"props 'user' \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\"         ], replace: [             \\Illuminate\\Cookie\\Middleware\\EncryptCookies::class => EncryptCookies::class, \/\/ \u0442\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440 EncryptCookies \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e cookies \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u044b \u043a\u0430\u043a $except, \u0438\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 cookies             \/\/ \u0412\u043e\u043e\u0431\u0449\u0435, \u044d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043c\u0435\u043d\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043c\u0438\u0434\u0434\u043b\u0432\u0435\u0439\u0440\u043e\u0432 - \u043e\u043d\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0430\u0434\u044f\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u044f\u0434\u0440\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u043c\u0438\u043d\u0443\u044f Kernel.php             \/\/ \u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442 https:\/\/laravel.com\/docs\/11.x\/middleware#laravels-default-middleware-groups             \/\/ \u0418 \u0442\u0443\u0442 https:\/\/laravel.com\/docs\/11.x\/middleware#laravels-default-middleware-groups         ]);                  \/*          \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0430\u043b\u0438\u0430\u0441\u044b \u043c\u0438\u0434\u0434\u043b\u0432\u0435\u0439\u0440\u043e\u0432         $middleware->alias([             'check' => CheckMiddleware::class,         ]);*\/     })     ->withExceptions(function (Exceptions $exceptions) {         \/\/ \u0442\u0443\u0442 \u0436\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0438 Exceptions, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 app\/Exceptions\/Handler.php     })     \/*     \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b     ->withCommands([         __DIR__.'\/..\/app\/Console\/Commands\/CreateAdminCommand.php',     ])*\/     ->create();  return $application;  <\/code><\/pre>\n<p>\u0412\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u043c\u0438\u0434\u043b\u0432\u0435\u0439\u0440\u0430\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a href=\"https:\/\/laravel.com\/docs\/11.x\/middleware\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442 \u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b\u0438\u043a\u0435 <code>artisan<\/code> \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442:<\/p>\n<pre><code class=\"php\">#!\/usr\/bin\/env php &lt;?php  use Symfony\\Component\\Console\\Input\\ArgvInput;  define('LARAVEL_START', microtime(true));  \/\/ Register the Composer autoloader... require __DIR__.'\/vendor\/autoload.php';  \/\/ Bootstrap Laravel and handle the command... $status = (require_once __DIR__.'\/bootstrap\/app.php')     ->handleCommand(new ArgvInput);  exit($status);  <\/code><\/pre>\n<p>\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre><code>app\/Http\/Kernel.php app\/Exceptions\/Handler.php app\/Console\/Kernel.php <\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0410 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438, \u0441\u043f\u0440\u043e\u0441\u0438\u0442 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c?<\/p>\n<p>\u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f:<\/p>\n<pre><code>PHP Warning:  require(\/var\/www\/html\/vendor\/composer\/..\/laminas\/laminas-diactoros\/src\/functions\/marshal_uri_from_sapi.php): Failed to open stream: No such file or directory in \/var\/www\/html\/vendor\/composer\/autoload_real.php on line 41 <\/code><\/pre>\n<p>\u041f\u043e\u043c\u043e\u0433\u043b\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 <code>composer require laminas\/laminas-diactoros<\/code>, \u0430 \u0441\u043d\u043e\u0441 \u0432\u0441\u0435\u0439 \u043f\u0430\u043f\u043a\u0438 <code>.\/vendor\/<\/code> \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0441\u0435\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0437\u0430\u043d\u043e\u0432\u043e (<code>composer install<\/code> \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e \u0437\u0430\u0431\u044b\u043b).<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0441 \u043a\u0430\u0439\u0444\u043e\u043c \u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Laravel, \u043d\u0438 \u0432 \u0447\u0451\u043c \u0441\u0435\u0431\u0435 \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u044f. \u0418 \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0430\u0439\u0434, \u0430 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043b\u0438 \u044f \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b &#8212; \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043e\u0431 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c <a href=\"https:\/\/laravel.com\/docs\/11.x\/upgrade\" rel=\"noopener noreferrer nofollow\">\u0433\u0430\u0439\u0434\u0435<\/a>. \u041f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0432\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438.<\/p>\n<hr\/>\n<blockquote>\n<p><a href=\"https:\/\/t.me\/fromidiottojunior\" rel=\"noopener noreferrer nofollow\">\u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c<\/a> \u043a\u0430\u043d\u0430\u043b \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440. \u041d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c.<\/p>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/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\/articles\/800497\/\"> https:\/\/habr.com\/ru\/articles\/800497\/<\/a><br \/><\/br><\/br><\/p>\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-370907","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370907","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=370907"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370907\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}