Skip to content

Commit cda3bc2

Browse files
committed
2024-12-02までの原文変更点反映。
1 parent 7137fb9 commit cda3bc2

File tree

8 files changed

+30
-14
lines changed

8 files changed

+30
-14
lines changed

original-en/http-client.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,14 @@ If you would like to specify a fallback URL pattern that will stub all unmatched
530530
'*' => Http::response('Hello World', 200, ['Headers']),
531531
]);
532532

533+
For convenience, simple string, JSON, and empty responses may be generated by providing a string, array, or integer as the response:
534+
535+
Http::fake([
536+
'google.com/*' => 'Hello World',
537+
'github.com/*' => ['foo' => 'bar'],
538+
'chatgpt.com/*' => 200,
539+
]);
540+
533541
<a name="faking-connection-exceptions"></a>
534542
#### Faking Connection Exceptions
535543

original-en/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ Before creating your first Laravel application, make sure that your local machin
6666
If you don't have PHP and Composer installed on your local machine, the following commands will install PHP, Composer, and the Laravel installer on macOS, Windows, or Linux:
6767

6868
```shell tab=macOS
69-
/bin/bash -c "$(curl -fsSL https://php.new/install/mac)"
69+
/bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.3)"
7070
```
7171

7272
```shell tab=Windows PowerShell
7373
# Run as administrator...
74-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows'))
74+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.3'))
7575
```
7676

7777
```shell tab=Linux
78-
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"
78+
/bin/bash -c "$(curl -fsSL https://php.new/install/linux/8.3)"
7979
```
8080

8181
After running one of the commands above, you should restart your terminal session. To update PHP, Composer, and the Laravel installer after installing them via `php.new`, you can re-run the command in your terminal.

original-en/sail.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ docker run --rm \
194194
-u "$(id -u):$(id -g)" \
195195
-v "$(pwd):/var/www/html" \
196196
-w /var/www/html \
197-
laravelsail/php83-composer:latest \
197+
laravelsail/php84-composer:latest \
198198
composer install --ignore-platform-reqs
199199
```
200200

201-
When using the `laravelsail/phpXX-composer` image, you should use the same version of PHP that you plan to use for your application (`80`, `81`, `82`, or `83`).
201+
When using the `laravelsail/phpXX-composer` image, you should use the same version of PHP that you plan to use for your application (`80`, `81`, `82`, `83`, or `84`).
202202

203203
<a name="executing-artisan-commands"></a>
204204
### Executing Artisan Commands
@@ -416,7 +416,7 @@ sail tinker
416416
<a name="sail-php-versions"></a>
417417
## PHP Versions
418418

419-
Sail currently supports serving your application via PHP 8.4, 8.3, 8.2, 8.1, or PHP 8.0. The default PHP version used by Sail is currently PHP 8.3. To change the PHP version that is used to serve your application, you should update the `build` definition of the `laravel.test` container in your application's `docker-compose.yml` file:
419+
Sail currently supports serving your application via PHP 8.4, 8.3, 8.2, 8.1, or PHP 8.0. The default PHP version used by Sail is currently PHP 8.4. To change the PHP version that is used to serve your application, you should update the `build` definition of the `laravel.test` container in your application's `docker-compose.yml` file:
420420

421421
```yaml
422422
# PHP 8.4

original-en/scheduling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ php artisan schedule:interrupt
430430
<a name="running-the-scheduler-locally"></a>
431431
### Running the Scheduler Locally
432432

433-
Typically, you would not add a scheduler cron entry to your local development machine. Instead, you may use the `schedule:work` Artisan command. This command will run in the foreground and invoke the scheduler every minute until you terminate the command:
433+
Typically, you would not add a scheduler cron entry to your local development machine. Instead, you may use the `schedule:work` Artisan command. This command will run in the foreground and invoke the scheduler every minute until you terminate the command. When sub-minute tasks are defined, the scheduler will continue running within each minute to process those tasks:
434434

435435
```shell
436436
php artisan schedule:work

translation-ja/http-client.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,14 @@ Laravelの多くのサービスでは、テストを簡単かつ表現豊かに
530530
'*' => Http::response('Hello World', 200, ['Headers']),
531531
]);
532532

533+
利便上、単純な文字列、JSON、空のレスポンスは、レスポンスとして文字列、配列、整数を指定することで生成できます。
534+
535+
Http::fake([
536+
'google.com/*' => 'Hello World',
537+
'github.com/*' => ['foo' => 'bar'],
538+
'chatgpt.com/*' => 200,
539+
]);
540+
533541
<a name="faking-connection-exceptions"></a>
534542
#### 接続例外のfake
535543

translation-ja/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ LaravelはPHPエコシステムで最高のパッケージを組み合わせ、
6666
ローカルマシンにPHPとComposerをインストールしていない場合は、以下のコマンドでPHP、Composer、LaravelインストーラをmacOS、Windows、Linuxへインストールできます。
6767

6868
```shell tab=macOS
69-
/bin/bash -c "$(curl -fsSL https://php.new/install/mac)"
69+
/bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.3)"
7070
```
7171

7272
```shell tab=Windows PowerShell
7373
# 管理者として実行する
74-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows'))
74+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.3'))
7575
```
7676

7777
```shell tab=Linux
78-
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"
78+
/bin/bash -c "$(curl -fsSL https://php.new/install/linux/8.3)"
7979
```
8080

8181
上記のコマンドを実行した後、ターミナルセッションを再起動してください。PHP、Composer、Laravelインストーラをインストールした後に、`php.new`によりアップデートするには、ターミナルでコマンドを再実行してください。

translation-ja/sail.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ docker run --rm \
194194
-u "$(id -u):$(id -g)" \
195195
-v "$(pwd):/var/www/html" \
196196
-w /var/www/html \
197-
laravelsail/php82-composer:latest \
197+
laravelsail/php84-composer:latest \
198198
composer install --ignore-platform-reqs
199199
```
200200

201-
`laravelsail/phpXX-composer`イメージを使用する場合、アプリケーションで使用する予定のPHPと同じバージョン(`80``81`, または `82`)を使用する必要があります。
201+
`laravelsail/phpXX-composer`イメージを使用する場合、アプリケーションで使用する予定のPHPと同じバージョン(`80``81``82``83``84`)を使用する必要があります。
202202

203203
<a name="executing-artisan-commands"></a>
204204
### Artisanコマンドの実行
@@ -416,7 +416,7 @@ sail tinker
416416
<a name="sail-php-versions"></a>
417417
## PHPバージョン
418418

419-
Sailは現在、PHP8.4、PHP8.3、PHP8.2、PHP8.1、PHP8.0を利用したアプリケーションの実行をサポートしています。SailのデフォルトPHPバージョンは8.3です。アプリケーションの実行に使用するPHPバージョンを変更するには、アプリケーションの`docker-compose.yml`ファイル内の`laravel.test`コンテナの`build`定義を更新してください。
419+
Sailは現在、PHP8.4、PHP8.3、PHP8.2、PHP8.1、PHP8.0を利用したアプリケーションの実行をサポートしています。SailのデフォルトPHPバージョンは8.4です。アプリケーションの実行に使用するPHPバージョンを変更するには、アプリケーションの`docker-compose.yml`ファイル内の`laravel.test`コンテナの`build`定義を更新してください。
420420

421421
```yaml
422422
# PHP 8.4

translation-ja/scheduling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ php artisan schedule:interrupt
430430
<a name="running-the-scheduler-locally"></a>
431431
### スケジュールをローカルで実行
432432

433-
通常、ローカル開発マシンにスケジューラのcronエントリを追加することはありません。代わりに、`schedule:work` Artisanコマンドを使用できます。このコマンドはフォアグラウンドで実行し、コマンドを終了するまで1分ごとにスケジューラーを呼び出します。
433+
通常、ローカル開発マシンにスケジューラのcronエントリを追加することはありません。代わりに、`schedule:work` Artisanコマンドを使用できます。このコマンドはフォアグラウンドで実行し、コマンドを終了するまで1分ごとにスケジューラーを呼び出します。秒単位のタスクを定義している場合、スケジューラーはそれらのタスクを処理するために毎分実行を続けます。
434434

435435
```shell
436436
php artisan schedule:work

0 commit comments

Comments
 (0)