File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 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
229229$value = Context::pull('key');
230230```
231231
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+
232244If you would like to retrieve all of the information stored in the context, you may invoke the ` all ` method:
233245
234246``` php
@@ -305,6 +317,7 @@ Context::addHiddenIf(/* ... */);
305317Context::pushHidden(/* ... */);
306318Context::getHidden(/* ... */);
307319Context::pullHidden(/* ... */);
320+ Context::popHidden(/* ... */);
308321Context::onlyHidden(/* ... */);
309322Context::allHidden(/* ... */);
310323Context::hasHidden(/* ... */);
You can’t perform that action at this time.
0 commit comments