File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,18 @@ The `pull` method may be used to retrieve information from the context and immed
229
229
$value = Context::pull('key');
230
230
```
231
231
232
+ If context data is stored in a [ stack] ( #stacks ) , you may pop items from the stack using the ` pop ` method:
233
+
234
+ ``` php
235
+ Context::push('breadcrumbs', 'first_value', 'second_value');
236
+
237
+ Context::pop('breadcrumbs')
238
+ // second_value
239
+
240
+ Context::get('breadcrumbs');
241
+ // ['first_value']
242
+ ```
243
+
232
244
If you would like to retrieve all of the information stored in the context, you may invoke the ` all ` method:
233
245
234
246
``` php
@@ -305,6 +317,7 @@ Context::addHiddenIf(/* ... */);
305
317
Context::pushHidden(/* ... */);
306
318
Context::getHidden(/* ... */);
307
319
Context::pullHidden(/* ... */);
320
+ Context::popHidden(/* ... */);
308
321
Context::onlyHidden(/* ... */);
309
322
Context::allHidden(/* ... */);
310
323
Context::hasHidden(/* ... */);
You can’t perform that action at this time.
0 commit comments