Replies: 1 comment
-
The Pennant package uses packages discovery in the composer.json file to automatically register the facade. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation states you can retrieve an instance of your class based feature, but this facade path doesn't seem correct and Laravel\Pennant\Feature does not have an instance method as far as I can tell. Did I miss something?
Also, when trying to determine if a feature is active using the class name (e.g.
Feature::active(MyFeature::class)
), if you have a name property defined it is not recognized. I tried using the name property as the primary identifier (e.g.Feature::active('my-feature')
) and it was not recognized. The class name identifier seems more consistent with Laravel conventions, so I'd suggest dropping support for the name property, but maybe it is more important when using the database driver.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions