Skip to content

Commit 651a075

Browse files
committed
ディレクトリ構造まで翻訳。
1 parent 7bb82fc commit 651a075

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

translation-ja/sail.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ sail up -d
142142

143143
アプリケーションのコンテナが開始されると、Webブラウザ(http:// localhost)でプロジェクトにアクセスできます。
144144

145-
To stop all of the containers, you may simply press Control + C to stop the container's execution. Or, if the containers are running in the background, you may use the `stop` command:
145+
すべてのコンテナを停止するには、シンプルにControl+Cキーを押して、コンテナの実行を停止してください。コンテナをバックグラウンドで実行している場合は、`stop`コマンドを使ってください。
146146

147147
```shell
148148
sail stop
@@ -525,7 +525,7 @@ sail build --no-cache
525525

526526
#### LinuxホストIP設定
527527

528-
Internally, the `XDEBUG_CONFIG` environment variable is defined as `client_host=host.docker.internal` so that Xdebug will be properly configured for Mac and Windows (WSL2). If your local machine is running Linux and you're using Docker 20.10+, `host.docker.internal` is available, and no manual configuration is required.
528+
内部的には `XDEBUG_CONFIG`環境変数を`client_host=host.docker.internal`として定義しているため、XdebugはMacとWindows(WSL2)で適切に設定されます。ローカルマシンがLinuxで、Docker20.10以降を使っている場合は、`host.docker.internal`が利用できるので、手作業で設定は不要です。
529529

530530
20.10より古いバージョンのDockerでは、Linux上の`host.docker.internal`はサポートされていないため、手作業でホストIPを定義する必要があります。これを行うには、`docker-compose.yml`ファイルでカスタムネットワークを定義して、コンテナに静的IPを設定します。
531531

translation-ja/sanctum.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ use Laravel\Sanctum\Http\Middleware\CheckForAnyAbility;
178178

179179
```php
180180
Route::get('/orders', function () {
181-
// Token has both "check-status" and "place-orders" abilities...
181+
// トークンは"check-status""place-orders"アビリティの両方を持っている
182182
})->middleware(['auth:sanctum', 'abilities:check-status,place-orders']);
183183
```
184184

185185
`ability`ミドルウェアは、受信リクエストのトークンに、リストしたアビリティのうち**少なくとも1つ**を持っていることを確認するため、ルートへ割り付けます。
186186

187187
```php
188188
Route::get('/orders', function () {
189-
// Token has the "check-status" or "place-orders" ability...
189+
// トークンは"check-status""place-orders"アビリティのどちらかを持っている
190190
})->middleware(['auth:sanctum', 'ability:check-status,place-orders']);
191191
```
192192

@@ -227,13 +227,13 @@ Route::get('/user', function (Request $request) {
227227
`Laravel\Sanctum\HasApiTokens`トレイトが提供する`tokens`リレーションを使用してデータベースからトークンを削除することにより、トークンを「取り消す」ことができます。
228228

229229
```php
230-
// Revoke all tokens...
230+
// 全トークンの削除
231231
$user->tokens()->delete();
232232

233-
// Revoke the token that was used to authenticate the current request...
233+
// 現在のリクエストの認証に使用されたトークンを取り消す
234234
$request->user()->currentAccessToken()->delete();
235235

236-
// Revoke a specific token...
236+
// 指定トークンを取り消す
237237
$user->tokens()->where('id', $tokenId)->delete();
238238
```
239239

@@ -464,10 +464,10 @@ Route::get('/user', function (Request $request) {
464464
ユーザーがモバイルデバイスに発行したAPIトークンを取り消すことができるようにするには、WebアプリケーションのUIで「アカウント設定」部分で「取り消す」ボタンと一緒に名前をリストしてください。ユーザーが「取り消す」ボタンをクリックしたら、データベースからトークンを削除できます。`Laravel\Sanctum\HasApiTokens`トレイトによって提供される`tokens`リレーションを介して、ユーザーのAPIトークンにアクセスできることを忘れないでください。
465465

466466
```php
467-
// Revoke all tokens...
467+
// 全トークンの削除
468468
$user->tokens()->delete();
469469

470-
// Revoke a specific token...
470+
// 指定トークンを取り消す
471471
$user->tokens()->where('id', $tokenId)->delete();
472472
```
473473

translation-ja/scout.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class Post extends Model
240240
use Searchable;
241241

242242
/**
243-
* Get the name of the index associated with the model.
243+
* モデルに関連付けているインデックスの名前を取得
244244
*/
245245
public function searchableAs(): string
246246
{
@@ -267,15 +267,15 @@ class Post extends Model
267267
use Searchable;
268268

269269
/**
270-
* Get the indexable data array for the model.
270+
* モデルのインデックス可能なデータ配列の取得
271271
*
272272
* @return array<string, mixed>
273273
*/
274274
public function toSearchableArray(): array
275275
{
276276
$array = $this->toArray();
277277

278-
// Customize the data array...
278+
// データ配列をカスタマイズ
279279

280280
return $array;
281281
}
@@ -398,15 +398,15 @@ class User extends Model
398398
use Searchable;
399399

400400
/**
401-
* Get the value used to index the model.
401+
* モデルのインデックスに使用する値の取得
402402
*/
403403
public function getScoutKey(): mixed
404404
{
405405
return $this->email;
406406
}
407407

408408
/**
409-
* Get the key name used to index the model.
409+
* モデルのインデックスに使用するキー名の取得
410410
*/
411411
public function getScoutKeyName(): mixed
412412
{
@@ -435,7 +435,7 @@ class User extends Model
435435
use Searchable;
436436

437437
/**
438-
* Get the engine used to index the model.
438+
* モデルのインデックスに使用するエンジンを取得
439439
*/
440440
public function searchableUsing(): Engine
441441
{
@@ -551,7 +551,7 @@ php artisan scout:flush "App\Models\Post"
551551
use Illuminate\Database\Eloquent\Builder;
552552

553553
/**
554-
* Modify the query used to retrieve models when making all of the models searchable.
554+
* 全モデルを検索可能にするときの、モデル取得に使用するクエリを変更
555555
*/
556556
protected function makeAllSearchableUsing(Builder $query): Builder
557557
{
@@ -613,7 +613,7 @@ use App\Models\Order;
613613

614614
$order = Order::find(1);
615615

616-
// Update the order...
616+
// 注文の更新処理…
617617

618618
$order->save();
619619
```
@@ -645,7 +645,7 @@ $orders->searchable();
645645
use Illuminate\Database\Eloquent\Collection;
646646

647647
/**
648-
* Modify the collection of models being made searchable.
648+
* 検索可能なモデルのコレクションを変更する
649649
*/
650650
public function makeSearchableUsing(Collection $models): Collection
651651
{
@@ -699,7 +699,7 @@ Order::removeAllFromSearch();
699699
use App\Models\Order;
700700

701701
Order::withoutSyncingToSearch(function () {
702-
// Perform model actions...
702+
// モデルアクションを実行…
703703
});
704704
```
705705

@@ -710,7 +710,7 @@ Order::withoutSyncingToSearch(function () {
710710

711711
```php
712712
/**
713-
* Determine if the model should be searchable.
713+
* モデルを検索可能にするかの判断
714714
*/
715715
public function shouldBeSearchable(): bool
716716
{
@@ -851,10 +851,10 @@ Route::get('/orders', function (Request $request) {
851851
```php
852852
use App\Models\Order;
853853

854-
// Include trashed records when retrieving results...
854+
// 結果の取得時に、削除済みレコードも含める
855855
$orders = Order::search('Star Trek')->withTrashed()->get();
856856

857-
// Only include trashed records when retrieving results...
857+
// 結果の取得時に、削除済みレコードのみを対象とする
858858
$orders = Order::search('Star Trek')->onlyTrashed()->get();
859859
```
860860

translation-ja/seeding.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DatabaseSeeder extends Seeder
6868
use App\Models\User;
6969

7070
/**
71-
* Run the database seeders.
71+
* データベースシーダの実行
7272
*/
7373
public function run(): void
7474
{
@@ -86,7 +86,7 @@ public function run(): void
8686

8787
```php
8888
/**
89-
* Run the database seeders.
89+
* データベースシーダの実行
9090
*/
9191
public function run(): void
9292
{

translation-ja/session.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ $value = $request->session()->get('key', function () {
115115

116116
```php
117117
Route::get('/home', function () {
118-
// Retrieve a piece of data from the session...
118+
// セッションからデータを取得
119119
$value = session('key');
120120

121-
// Specifying a default value...
121+
// デフォルト値の指定
122122
$value = session('key', 'default');
123123

124-
// Store a piece of data in the session...
124+
// セッションにデータを保存
125125
session(['key' => 'value']);
126126
});
127127
```
@@ -182,10 +182,10 @@ if ($request->session()->missing('users')) {
182182
セッションにデータを保存するには、通常、リクエストインスタンスの`put`メソッドまたは`session`グローバルヘルパを使用します。
183183

184184
```php
185-
// Via a request instance...
185+
// リクエストインスタンス経由
186186
$request->session()->put('key', 'value');
187187

188-
// Via the global "session" helper...
188+
// グローバルな"session"ヘルパ経由
189189
session(['key' => 'value']);
190190
```
191191

@@ -208,9 +208,9 @@ $value = $request->session()->pull('key', 'default');
208208
```
209209

210210
<a name="incrementing-and-decrementing-session-values"></a>
211-
#### Incrementing and Decrementing Session Values
211+
#### セッション値の増分/減分
212212

213-
セッションデータが増分や減分をしたい整数の場合は`increment`メソッドと`decrement`メソッドを使えます。
213+
セッションデータが整数で増分や減分をしたい場合は`increment`メソッドと`decrement`メソッドを使えます。
214214

215215
```php
216216
$request->session()->increment('count');
@@ -251,10 +251,10 @@ $request->session()->now('status', 'Task was successful!');
251251
`forget`メソッドは、セッションからデータの一部を削除します。セッションからすべてのデータを削除したい場合は、`flush`メソッドを使用できます。
252252

253253
```php
254-
// Forget a single key...
254+
// 一つのキーを削除
255255
$request->session()->forget('name');
256256

257-
// Forget multiple keys...
257+
// 複数のキーを削除
258258
$request->session()->forget(['name', 'status']);
259259

260260
$request->session()->flush();
@@ -333,9 +333,9 @@ class MongoSessionHandler implements \SessionHandlerInterface
333333
}
334334
```
335335

336-
Since Laravel does not include a default directory to house your extensions. You are free to place them anywhere you like. In this example, we have created an `Extensions` directory to house the `MongoSessionHandler`.
336+
Laravelにはエクステンションを格納するデフォルトのディレクトリはありません。好きな場所に自由に置くことができます。この例では、`MongoSessionHandler`を格納するために、`Extensions`ディレクトリを作成しています。
337337

338-
Since the purpose of these methods is not readily understandable, here is an overview of the purpose of each method:
338+
これらのメソッドの目的は容易に理解できないため、ここで各メソッドの目的を概説します。
339339

340340
<div class="content-list" markdown="1">
341341

@@ -379,7 +379,7 @@ class SessionServiceProvider extends ServiceProvider
379379
public function boot(): void
380380
{
381381
Session::extend('mongo', function (Application $app) {
382-
// Return an implementation of SessionHandlerInterface...
382+
// SessionHandlerInterfaceの実装を返す…
383383
return new MongoSessionHandler;
384384
});
385385
}

translation-ja/socialite.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,16 @@ use Laravel\Socialite\Facades\Socialite;
188188
Route::get('/auth/callback', function () {
189189
$user = Socialite::driver('github')->user();
190190

191-
// OAuth 2.0 providers...
191+
// OAuth2.0プロバイダ
192192
$token = $user->token;
193193
$refreshToken = $user->refreshToken;
194194
$expiresIn = $user->expiresIn;
195195

196-
// OAuth 1.0 providers...
196+
// OAuth1.0プロバイダ
197197
$token = $user->token;
198198
$tokenSecret = $user->tokenSecret;
199199

200-
// All providers...
200+
// 全プロバイダ
201201
$user->getId();
202202
$user->getNickname();
203203
$user->getName();

0 commit comments

Comments
 (0)