We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d3434f commit f4a0c4fCopy full SHA for f4a0c4f
laravel/index.md
@@ -193,14 +193,7 @@ use ApiPlatform\Metadata\Get;
193
#[Get(uriTemplate: '/my_custom_book/{id}')]
194
class Book
195
{
196
- public string $id;
197
- public string $title;
198
-
199
- public function __construct(string $id, string $title)
200
- {
201
- $this->id = $id;
202
- $this->title = $title;
203
- }
+ public function __construct(public string $id, public string $title) {}
204
}
205
```
206
@@ -280,8 +273,7 @@ use App\State\BookProvider;
280
273
#[Get(uriTemplate: '/my_custom_book/{id}', provider: BookProvider::class)]
281
274
282
275
283
284
276
285
277
286
278
287
279
0 commit comments