We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Feature::values()
1 parent 05eaeaa commit 2b215aaCopy full SHA for 2b215aa
pennant.md
@@ -523,6 +523,17 @@ Pennant's included Blade directive also makes it easy to conditionally render co
523
@endfeature
524
```
525
526
+If you would like to retrieve multiple feature values at once for a single scope, you may use the `values` method:
527
+
528
+```php
529
+Feature::values(['new-api', 'purchase-button']);
530
531
+// [
532
+// 'new-api' => false,
533
+// 'purchase-button' => 'tart-orange',
534
+// ]
535
+```
536
537
> **Note** When using rich values, it is important to know that a feature is considered "active" when it has any value other than `false`.
538
539
<a name="eager-loading"></a>
0 commit comments