Skip to content

Commit 326c234

Browse files
committed
wip
1 parent 4bb6103 commit 326c234

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎container.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class PhotoController extends Controller
291291
}
292292
```
293293

294-
In addition to the `Storage` attribute, Laravel offers `Auth`, `Cache`, `Config`, `DB`, `Log`, `RouteParameter`, and [Tag](#tagging) attributes:
294+
In addition to the `Storage` attribute, Laravel offers `Auth`, `Cache`, `Config`, `Context`, `DB`, `Log`, `RouteParameter`, and [Tag](#tagging) attributes:
295295

296296
```php
297297
<?php
@@ -302,6 +302,7 @@ use App\Models\Photo;
302302
use Illuminate\Container\Attributes\Auth;
303303
use Illuminate\Container\Attributes\Cache;
304304
use Illuminate\Container\Attributes\Config;
305+
use Illuminate\Container\Attributes\Context;
305306
use Illuminate\Container\Attributes\DB;
306307
use Illuminate\Container\Attributes\Log;
307308
use Illuminate\Container\Attributes\RouteParameter;
@@ -317,6 +318,7 @@ class PhotoController extends Controller
317318
#[Auth('web')] protected Guard $auth,
318319
#[Cache('redis')] protected Repository $cache,
319320
#[Config('app.timezone')] protected string $timezone,
321+
#[Context('uuid')] protected string $uuid,
320322
#[DB('mysql')] protected Connection $connection,
321323
#[Log('daily')] protected LoggerInterface $log,
322324
#[RouteParameter('photo')] protected Photo $photo,

0 commit comments

Comments
 (0)