{"id":452654,"date":"2025-03-21T21:02:58","date_gmt":"2025-03-21T21:02:58","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452654"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452654","title":{"rendered":"<span>\u041e\u0448\u0438\u0431\u043a\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 Laravel Prompts \u0432 Laravel-Zero<\/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><a href=\"https:\/\/laravel-zero.com\/\" rel=\"noopener noreferrer nofollow\">Laravel Zero<\/a> &#8212; \u044d\u0442\u043e \u043c\u0438\u043a\u0440\u043e-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"https:\/\/laravel.com\/\" rel=\"noopener noreferrer nofollow\">Laravel Framework<\/a>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043b\u0435\u0433\u043a\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0431\u0435\u0437 \u0432\u0435\u0431\u0430. \u041d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0442\u0430\u043b \u043a\u0435\u0439\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h2>\u0412\u0432\u043e\u0434\u043d\u0430\u044f<\/h2>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 Laravel Zero, \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/laravel.com\/docs\/prompts\" rel=\"noopener noreferrer nofollow\">Laravel Prompts<\/a> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u0438\u0431\u043a\u043e\u0433\u043e, \u043b\u0451\u0433\u043a\u043e\u0433\u043e \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u0418, \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u043f\u043e\u0434 Windows, \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u043f\u043e\u0434 Linux &#8212; \u043d\u0435\u0442, \u043e\u0442 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043c\u0435\u043d\u044f \u0432 \u0441\u0442\u0443\u043f\u043e\u0440&#8230;<\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0432\u0441\u0451 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u0434\u043e\u043c:<\/p>\n<pre><code class=\"php\">use Illuminate\\Console\\Command;  use function Laravel\\Prompts\\text;  class FooCommand extends Command {     protected $signature = 'foo';      protected $description = 'Command description';      public function handle(): void     {         $first  = text('First question');         $second = text('Second question');          $this-&gt;info('First is ' . $first);         $this-&gt;info('Second is ' . $second);     } }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u0435\u043c <a href=\"https:\/\/pestphp.com\/\" rel=\"noopener noreferrer nofollow\">Pest<\/a> \u0442\u0435\u0441\u0442:<\/p>\n<pre><code class=\"php\">use App\\Commands\\FooCommand;  it('some', fn() =&gt; test()-&gt;artisan(FooCommand::class)     -&gt;expectsQuestion('First question', 'qwerty')     -&gt;expectsQuestion('Second question', 'wasd')     -&gt;expectsOutputToContain('First is qwerty')     -&gt;expectsOutputToContain('Second is wasd')     -&gt;assertSuccessful() );<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0435\u0441\u0442\u0430 \u043f\u043e\u0434 Windows \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043d\u0438\u043c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --filter FooTest     PASS  Tests\\Feature\\FooTest    \u2713 it some                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0.34s      Tests:    1 passed (10 assertions)   Duration: 0.51s <\/code><\/pre>\n<p>\u041d\u041e \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 WSL (Ubuntu), \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0447\u0442\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Windows, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --filter FooTest   FAILED  Tests\\Feature\\FooTest &gt; it some AssertionFailedError     Question \"First question\" was not asked.    at vendor\/illuminate\/testing\/PendingCommand.php:370     366\u2595      *\/     367\u2595     protected function verifyExpectations()     368\u2595     {     369\u2595         if (count($this-&gt;test-&gt;expectedQuestions)) {   \u279c 370\u2595             $this-&gt;test-&gt;fail('Question \"'.Arr::first($this-&gt;test-&gt;expectedQuestions)[0].'\" was not asked.');     371\u2595         }     372\u2595     373\u2595         if (count($this-&gt;test-&gt;expectedChoices) &gt; 0) {     374\u2595             foreach ($this-&gt;test-&gt;expectedChoices as $question =&gt; $answers) {        +3 vendor frames    4   tests\/Feature\/FooTest.php:13<\/code><\/pre>\n<p>\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043b\u0438\u0431\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442, \u043b\u0438\u0431\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h2>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/laravel.com\/docs\/prompts#fallbacks\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> Prompts \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b \u0433\u0434\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u0438\u0437-\u0437\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 Windows, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Laravel Framework 10.17, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Laravel Prompts \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#171;\u0432 \u043a\u043e\u0440\u043e\u0431\u043a\u0435&#187;, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u044f\u0432\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u044d\u0442\u043e\u0439 &#171;\u043a\u043e\u0440\u043e\u0431\u043a\u043e\u0439&#187; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0418 \u043c\u044b \u043d\u0435 \u043e\u0448\u0438\u0431\u043b\u0438\u0441\u044c! \u0412 \u043a\u043e\u0434\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0435\u0439\u0442 <a href=\"https:\/\/github.com\/laravel\/framework\/blob\/12.x\/src\/Illuminate\/Console\/Concerns\/ConfiguresPrompts.php\" rel=\"noopener noreferrer nofollow\">ConfiguresPrompts<\/a> \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043d\u0443\u0436\u043d\u044b\u0445 fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u042d\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434.<\/p>\n<p>\u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u043e\u0448\u0438\u0431\u043a\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c. \u0418\u0437\u0443\u0447\u0430\u044f \u043a\u043e\u0434, \u043d\u0430 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439 \u0436\u0435 \u0435\u0433\u043e \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0432\u0438\u0434\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"php\">Prompt::fallbackWhen(windows_os() || $this-&gt;laravel-&gt;runningUnitTests());<\/code><\/pre>\n<p>\u0418 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043d\u0435\u0442. \u0412\u044b\u0437\u043e\u0432 <code>dd($this-&gt;laravel-&gt;runningUnitTests())<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 <code>false<\/code> \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0434\u043e\u0433\u0430\u0434\u043a\u0438.<\/p>\n<h2>\u0410 \u043b\u0430\u0440\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0441\u044f&#8230;<\/h2>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>runningUnitTests<\/code> \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0438 \u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u043c\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<pre><code class=\"php\">public function runningUnitTests() {     return $this-&gt;bound('env') &amp;&amp; $this['env'] === 'testing'; }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <code>dd($this['env'])<\/code> \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <code>development<\/code>. \u0418 \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c&#8230; \ud83d\ude11<\/p>\n<p>\u0413\u0434\u0435 \u0432 Laravel \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043c\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e! \u0432 <code>phpunit.xml<\/code> \u0444\u0430\u0439\u043b\u0435. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <a href=\"https:\/\/github.com\/laravel-zero\/laravel-zero\/blob\/master\/phpunit.xml.dist\" rel=\"noopener noreferrer nofollow\">\u0444\u0430\u0439\u043b<\/a> \u0438 \u0447\u0442\u043e \u0432\u0438\u0434\u0438\u043c? \u0410 \u043d\u0438\u0447\u0435\u0433\u043e \u043c\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u043c! \u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435-\u0442\u043e \u043d\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0432\u043e\u0432\u0441\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0434\u0442\u0438 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435? \u0412\u0435\u0440\u043d\u043e! \u0412 <code>config\/app.php<\/code> \u0438 \u0432\u0438\u0434\u0438\u043c&#8230;<\/p>\n<pre><code class=\"php\">return [     \/\/ ...     'env' =&gt; 'development',     \/\/ ... ];<\/code><\/pre>\n<p>\ud83e\udd26\u200d\u2642\ufe0f\ud83e\udd26\u200d\u2642\ufe0f\ud83e\udd26\u200d\u2642\ufe0f<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432 \u0444\u0430\u0439\u043b <code>phpunit.xml<\/code> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<pre><code class=\"xml\">&lt;php&gt;     &lt;env name=\"APP_ENV\" value=\"testing\" \/&gt; &lt;\/php&gt;<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c \u0444\u0430\u0439\u043b\u0435 <code>config\/app.php<\/code> \u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430:<\/p>\n<pre><code class=\"diff\">-'env' =&gt; 'development', +'env' =&gt; env('APP_ENV', 'production'),<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u044b \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --parallel    .................................    Tests:    33 passed (108 assertions)   Duration: 2.69s   Parallel: 16 processes <\/code><\/pre>\n<p>\u0412\u0441\u0451.<\/p>\n<\/p>\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\/892010\/\"> https:\/\/habr.com\/ru\/articles\/892010\/<\/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><a href=\"https:\/\/laravel-zero.com\/\" rel=\"noopener noreferrer nofollow\">Laravel Zero<\/a> &#8212; \u044d\u0442\u043e \u043c\u0438\u043a\u0440\u043e-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"https:\/\/laravel.com\/\" rel=\"noopener noreferrer nofollow\">Laravel Framework<\/a>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043b\u0435\u0433\u043a\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0431\u0435\u0437 \u0432\u0435\u0431\u0430. \u041d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0442\u0430\u043b \u043a\u0435\u0439\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h2>\u0412\u0432\u043e\u0434\u043d\u0430\u044f<\/h2>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 Laravel Zero, \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/laravel.com\/docs\/prompts\" rel=\"noopener noreferrer nofollow\">Laravel Prompts<\/a> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u0438\u0431\u043a\u043e\u0433\u043e, \u043b\u0451\u0433\u043a\u043e\u0433\u043e \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u0418, \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u043f\u043e\u0434 Windows, \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u043f\u043e\u0434 Linux &#8212; \u043d\u0435\u0442, \u043e\u0442 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043c\u0435\u043d\u044f \u0432 \u0441\u0442\u0443\u043f\u043e\u0440&#8230;<\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0432\u0441\u0451 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u0434\u043e\u043c:<\/p>\n<pre><code class=\"php\">use Illuminate\\Console\\Command;  use function Laravel\\Prompts\\text;  class FooCommand extends Command {     protected $signature = 'foo';      protected $description = 'Command description';      public function handle(): void     {         $first  = text('First question');         $second = text('Second question');          $this-&gt;info('First is ' . $first);         $this-&gt;info('Second is ' . $second);     } }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u0435\u043c <a href=\"https:\/\/pestphp.com\/\" rel=\"noopener noreferrer nofollow\">Pest<\/a> \u0442\u0435\u0441\u0442:<\/p>\n<pre><code class=\"php\">use App\\Commands\\FooCommand;  it('some', fn() =&gt; test()-&gt;artisan(FooCommand::class)     -&gt;expectsQuestion('First question', 'qwerty')     -&gt;expectsQuestion('Second question', 'wasd')     -&gt;expectsOutputToContain('First is qwerty')     -&gt;expectsOutputToContain('Second is wasd')     -&gt;assertSuccessful() );<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0435\u0441\u0442\u0430 \u043f\u043e\u0434 Windows \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043d\u0438\u043c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --filter FooTest     PASS  Tests\\Feature\\FooTest    \u2713 it some                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0.34s      Tests:    1 passed (10 assertions)   Duration: 0.51s <\/code><\/pre>\n<p>\u041d\u041e \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 WSL (Ubuntu), \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0447\u0442\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Windows, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --filter FooTest   FAILED  Tests\\Feature\\FooTest &gt; it some AssertionFailedError     Question \"First question\" was not asked.    at vendor\/illuminate\/testing\/PendingCommand.php:370     366\u2595      *\/     367\u2595     protected function verifyExpectations()     368\u2595     {     369\u2595         if (count($this-&gt;test-&gt;expectedQuestions)) {   \u279c 370\u2595             $this-&gt;test-&gt;fail('Question \"'.Arr::first($this-&gt;test-&gt;expectedQuestions)[0].'\" was not asked.');     371\u2595         }     372\u2595     373\u2595         if (count($this-&gt;test-&gt;expectedChoices) &gt; 0) {     374\u2595             foreach ($this-&gt;test-&gt;expectedChoices as $question =&gt; $answers) {        +3 vendor frames    4   tests\/Feature\/FooTest.php:13<\/code><\/pre>\n<p>\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043b\u0438\u0431\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442, \u043b\u0438\u0431\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h2>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/laravel.com\/docs\/prompts#fallbacks\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> Prompts \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b \u0433\u0434\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u0438\u0437-\u0437\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 Windows, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Laravel Framework 10.17, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Laravel Prompts \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#171;\u0432 \u043a\u043e\u0440\u043e\u0431\u043a\u0435&#187;, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u044f\u0432\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u044d\u0442\u043e\u0439 &#171;\u043a\u043e\u0440\u043e\u0431\u043a\u043e\u0439&#187; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0418 \u043c\u044b \u043d\u0435 \u043e\u0448\u0438\u0431\u043b\u0438\u0441\u044c! \u0412 \u043a\u043e\u0434\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0435\u0439\u0442 <a href=\"https:\/\/github.com\/laravel\/framework\/blob\/12.x\/src\/Illuminate\/Console\/Concerns\/ConfiguresPrompts.php\" rel=\"noopener noreferrer nofollow\">ConfiguresPrompts<\/a> \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043d\u0443\u0436\u043d\u044b\u0445 fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u042d\u0442\u043e \u043d\u0430\u043c \u043d\u0430 \u0440\u0443\u043a\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434.<\/p>\n<p>\u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u043e\u0448\u0438\u0431\u043a\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c. \u0418\u0437\u0443\u0447\u0430\u044f \u043a\u043e\u0434, \u043d\u0430 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439 \u0436\u0435 \u0435\u0433\u043e \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0432\u0438\u0434\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 fallback \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"php\">Prompt::fallbackWhen(windows_os() || $this-&gt;laravel-&gt;runningUnitTests());<\/code><\/pre>\n<p>\u0418 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u0434 Windows \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043d\u0435\u0442. \u0412\u044b\u0437\u043e\u0432 <code>dd($this-&gt;laravel-&gt;runningUnitTests())<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 <code>false<\/code> \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0434\u043e\u0433\u0430\u0434\u043a\u0438.<\/p>\n<h2>\u0410 \u043b\u0430\u0440\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0441\u044f&#8230;<\/h2>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>runningUnitTests<\/code> \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0438 \u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u043c\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<pre><code class=\"php\">public function runningUnitTests() {     return $this-&gt;bound('env') &amp;&amp; $this['env'] === 'testing'; }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <code>dd($this['env'])<\/code> \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <code>development<\/code>. \u0418 \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c&#8230; \ud83d\ude11<\/p>\n<p>\u0413\u0434\u0435 \u0432 Laravel \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043c\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e! \u0432 <code>phpunit.xml<\/code> \u0444\u0430\u0439\u043b\u0435. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <a href=\"https:\/\/github.com\/laravel-zero\/laravel-zero\/blob\/master\/phpunit.xml.dist\" rel=\"noopener noreferrer nofollow\">\u0444\u0430\u0439\u043b<\/a> \u0438 \u0447\u0442\u043e \u0432\u0438\u0434\u0438\u043c? \u0410 \u043d\u0438\u0447\u0435\u0433\u043e \u043c\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u043c! \u041e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435-\u0442\u043e \u043d\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0432\u043e\u0432\u0441\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0434\u0442\u0438 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435? \u0412\u0435\u0440\u043d\u043e! \u0412 <code>config\/app.php<\/code> \u0438 \u0432\u0438\u0434\u0438\u043c&#8230;<\/p>\n<pre><code class=\"php\">return [     \/\/ ...     'env' =&gt; 'development',     \/\/ ... ];<\/code><\/pre>\n<p>\ud83e\udd26\u200d\u2642\ufe0f\ud83e\udd26\u200d\u2642\ufe0f\ud83e\udd26\u200d\u2642\ufe0f<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432 \u0444\u0430\u0439\u043b <code>phpunit.xml<\/code> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<pre><code class=\"xml\">&lt;php&gt;     &lt;env name=\"APP_ENV\" value=\"testing\" \/&gt; &lt;\/php&gt;<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c \u0444\u0430\u0439\u043b\u0435 <code>config\/app.php<\/code> \u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430:<\/p>\n<pre><code class=\"diff\">-'env' =&gt; 'development', +'env' =&gt; env('APP_ENV', 'production'),<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u044b \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c:<\/p>\n<pre><code class=\"bash\">$ vendor\/bin\/pest --parallel    .................................    Tests:    33 passed (108 assertions)   Duration: 2.69s   Parallel: 16 processes <\/code><\/pre>\n<p>\u0412\u0441\u0451.<\/p>\n<\/p>\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\/892010\/\"> https:\/\/habr.com\/ru\/articles\/892010\/<\/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-452654","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452654","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=452654"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452654\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}