Closed jeroendelau closed 6 months ago
Hey, @jeroendelau, this is known and documented behaviour. You will want to use discovery if you do not want to register classes manually.
See: https://laravel.com/docs/10.x/pennant#retrieving-multiple-features
So sorry, completely missed that.
No worries at all :)
I did too, maybe its worth mentioning it in the class-based-features
section as it is a requirement for that feature to work.
@mrvnklm, you do not need to register class based features; registering them is optional. They register when you use them.
Pennant Version
1.6.0
Laravel Version
10.46.0
PHP Version
8.1.4
Database Driver & Version
MySql 8.1 Lando
Description
The documentation for features states.
But they do not behave exactly the same. If you do not Define the feature, it will not show up if you run
Steps To Reproduce
Example:
Closure Based
Class Based
Class Based but defined in Service provider