Skip to content

Commit a7c4346

Browse files
committed
wip
1 parent 486b8bb commit a7c4346

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

context.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ Context::get('breadcrumbs');
296296
The `remember` and `rememberHidden` methods may be used to retrieve information from the context, while setting the context value to the value returned by the given closure if the requested information doesn't exist:
297297

298298
```php
299-
$permissions = Context::remember('user-permissions', function () use ($user) {
300-
return $user->permissions;
301-
});
299+
$permissions = Context::remember(
300+
'user-permissions',
301+
fn () => $user->permissions,
302+
);
302303
```
303304

304305
If you would like to retrieve all of the information stored in the context, you may invoke the `all` method:

0 commit comments

Comments
 (0)