Skip to content

Commit 878cb55

Browse files
committed
2025年11月24日までの原文変更点反映。
1 parent 724ef35 commit 878cb55

File tree

18 files changed

+231
-55
lines changed

18 files changed

+231
-55
lines changed

original-en/blade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,16 @@ If you would like to prepend content onto the beginning of a stack, you should u
18551855
@endprepend
18561856
```
18571857

1858+
The `@hasstack` directive may be used to determine if a stack is empty:
1859+
1860+
```blade
1861+
@hasstack('list')
1862+
<ul>
1863+
@stack('list')
1864+
</ul>
1865+
@endif
1866+
```
1867+
18581868
<a name="service-injection"></a>
18591869
## Service Injection
18601870

original-en/mail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Next, set the `default` option in your application's `config/mail.php` configura
111111

112112
```php
113113
'postmark' => [
114-
'key' => env('POSTMARK_API_TOKEN'),
114+
'key' => env('POSTMARK_API_KEY'),
115115
],
116116
```
117117

original-en/mcp.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- [Resource Dependency Injection](#resource-dependency-injection)
3030
- [Conditional Resource Registration](#conditional-resource-registration)
3131
- [Resource Responses](#resource-responses)
32+
- [Metadata](#metadata)
3233
- [Authentication](#authentication)
3334
- [OAuth 2.1](#oauth)
3435
- [Sanctum](#sanctum)
@@ -1116,6 +1117,63 @@ To indicate an error occurred during resource retrieval, use the `error()` metho
11161117
return Response::error('Unable to fetch weather data for the specified location.');
11171118
```
11181119

1120+
<a name="metadata"></a>
1121+
## Metadata
1122+
1123+
Laravel MCP also supports the `_meta` field as defined in the [MCP specification](https://modelcontextprotocol.io/specification/2025-06-18/basic#meta), which is required by certain MCP clients or integrations. Metadata can be applied to all MCP primitives, including tools, resources, and prompts, as well as their responses.
1124+
1125+
You can attach metadata to individual response content using the `withMeta` method:
1126+
1127+
```php
1128+
use Laravel\Mcp\Request;
1129+
use Laravel\Mcp\Response;
1130+
1131+
/**
1132+
* Handle the tool request.
1133+
*/
1134+
public function handle(Request $request): Response
1135+
{
1136+
return Response::text('The weather is sunny.')
1137+
->withMeta(['source' => 'weather-api', 'cached' => true]);
1138+
}
1139+
```
1140+
1141+
For result-level metadata that applies to the entire response envelope, wrap your responses with `Response::make` and call `withMeta` on the returned response factory instance:
1142+
1143+
```php
1144+
use Laravel\Mcp\Request;
1145+
use Laravel\Mcp\Response;
1146+
use Laravel\Mcp\ResponseFactory;
1147+
1148+
/**
1149+
* Handle the tool request.
1150+
*/
1151+
public function handle(Request $request): ResponseFactory
1152+
{
1153+
return Response::make(
1154+
Response::text('The weather is sunny.')
1155+
)->withMeta(['request_id' => '12345']);
1156+
}
1157+
```
1158+
1159+
To attach metadata to a tool, resource, or prompt itself, define a `$meta` property on the class:
1160+
1161+
```php
1162+
use Laravel\Mcp\Server\Tool;
1163+
1164+
class CurrentWeatherTool extends Tool
1165+
{
1166+
protected string $description = 'Fetches the current weather forecast.';
1167+
1168+
protected ?array $meta = [
1169+
'version' => '2.0',
1170+
'author' => 'Weather Team',
1171+
];
1172+
1173+
// ...
1174+
}
1175+
```
1176+
11191177
<a name="authentication"></a>
11201178
## Authentication
11211179

original-en/precognition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<a name="introduction"></a>
1717
## Introduction
1818

19-
Laravel Precognition allows you to anticipate the outcome of a future HTTP request. One of the primary use cases of Precognition is the ability to provide "live" validation for your frontend JavaScript application without having to duplicate your application's backend validation rules. Precognition pairs especially well with Laravel's Inertia-based [starter kits](/docs/{{version}}/starter-kits).
19+
Laravel Precognition allows you to anticipate the outcome of a future HTTP request. One of the primary use cases of Precognition is the ability to provide "live" validation for your frontend JavaScript application without having to duplicate your application's backend validation rules.
2020

2121
When Laravel receives a "precognitive request", it will execute all of the route's middleware and resolve the route's controller dependencies, including validating [form requests](/docs/{{version}}/validation#form-request-validation) - but it will not actually execute the route's controller method.
2222

original-en/queues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ ProcessPodcast::dispatchIf($accountActive, $podcast);
890890
ProcessPodcast::dispatchUnless($accountSuspended, $podcast);
891891
```
892892

893-
In new Laravel applications, the `database` driver is the default queue driver. You may specify a different queue driver within your application's `config/queue.php` configuration file.
893+
In new Laravel applications, the `database` connection is defined as the default queue. You may specify a different default queue connection by changing the `QUEUE_CONNECTION` environment variable in your application's `.env` file.
894894

895895
<a name="delayed-dispatching"></a>
896896
### Delayed Dispatching

original-en/releases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ For all Laravel releases, bug fixes are provided for 18 months and security fixe
2424
<div class="overflow-auto">
2525

2626
| Version | PHP (*) | Release | Bug Fixes Until | Security Fixes Until |
27-
| ------- | --------- | ------------------- | ------------------- | -------------------- |
27+
| ------- |-----------| ------------------- | ------------------- | -------------------- |
2828
| 10 | 8.1 - 8.3 | February 14th, 2023 | August 6th, 2024 | February 4th, 2025 |
2929
| 11 | 8.2 - 8.4 | March 12th, 2024 | September 3rd, 2025 | March 12th, 2026 |
30-
| 12 | 8.2 - 8.4 | February 24th, 2025 | August 13th, 2026 | February 24th, 2027 |
31-
| 13 | 8.3 - 8.4 | Q1 2026 | Q3 2027 | Q1 2028 |
30+
| 12 | 8.2 - 8.5 | February 24th, 2025 | August 13th, 2026 | February 24th, 2027 |
31+
| 13 | 8.3 - 8.5 | Q1 2026 | Q3 2027 | Q1 2028 |
3232

3333
</div>
3434

original-en/scheduling.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ We've already seen a few examples of how you may configure a task to run at spec
168168
| `->dailyAt('13:00');` | Run the task every day at 13:00. |
169169
| `->twiceDaily(1, 13);` | Run the task daily at 1:00 & 13:00. |
170170
| `->twiceDailyAt(1, 13, 15);` | Run the task daily at 1:15 & 13:15. |
171+
| `->daysOfMonth([1, 10, 20]);` | Run the task on specific days of the month. |
171172
| `->weekly();` | Run the task every Sunday at 00:00. |
172173
| `->weeklyOn(1, '8:00');` | Run the task every week on Monday at 8:00. |
173174
| `->monthly();` | Run the task on the first day of every month at 00:00. |

original-en/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [Running Tests in Parallel](#running-tests-in-parallel)
88
- [Reporting Test Coverage](#reporting-test-coverage)
99
- [Profiling Tests](#profiling-tests)
10-
- [Caching Configuration](#caching-configuration)
10+
- [Configuration Caching](#configuration-caching)
1111

1212
<a name="introduction"></a>
1313
## Introduction

original-en/validation.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ Below is a list of all available validation rules and their function:
10751075

10761076
[Between](#rule-between)
10771077
[Dimensions](#rule-dimensions)
1078+
[Encoding](#rule-encoding)
10781079
[Extensions](#rule-extensions)
10791080
[File](#rule-file)
10801081
[Image](#rule-image)
@@ -1575,6 +1576,24 @@ $request->validate([
15751576
> [!WARNING]
15761577
> The `dns` and `spoof` validators require the PHP `intl` extension.
15771578
1579+
<a name="rule-encoding"></a>
1580+
#### encoding:*encoding_type*
1581+
1582+
The field under validation must match the specified character encoding. This rule uses PHP's `mb_check_encoding` function to verify the encoding of the given file or string value. For convenience, the `encoding` rule may be constructed using Laravel's fluent file rule builder:
1583+
1584+
```php
1585+
use Illuminate\Support\Facades\Validator;
1586+
use Illuminate\Validation\Rules\File;
1587+
1588+
Validator::validate($input, [
1589+
'attachment' => [
1590+
'required',
1591+
File::types(['csv'])
1592+
->encoding('utf-8'),
1593+
],
1594+
]);
1595+
```
1596+
15781597
<a name="rule-ends-with"></a>
15791598
#### ends_with:_foo_,_bar_,...
15801599

translation-ja/blade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,16 @@ Bladeを使用すると、別のビューまたはレイアウトのどこか別
18551855
@endprepend
18561856
```
18571857

1858+
`@hasstack`ディレクティブは、スタックが空かを判断するために使用します。
1859+
1860+
```blade
1861+
@hasstack('list')
1862+
<ul>
1863+
@stack('list')
1864+
</ul>
1865+
@endif
1866+
```
1867+
18581868
<a name="service-injection"></a>
18591869
## サービス注入
18601870

0 commit comments

Comments
 (0)