You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pennant.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,14 @@ class NewApi
143
143
}
144
144
```
145
145
146
+
If you would like to manually resolve an instance of a class based feature, you may invoke the `instance` method on the `Feature` facade:
147
+
148
+
```php
149
+
use Illuminate\Support\Facades\Feature;
150
+
151
+
$instance = Feature::instance(NewApi::class);
152
+
```
153
+
146
154
> [!NOTE]
147
155
> Feature classes are resolved via the [container](/docs/{{version}}/container), so you may inject dependencies into the feature class's constructor when needed.
0 commit comments