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
Trying to inherit from SelectTree ends in a mess:
First you can not reuse methods like buildTree() etc. because their scope is private instead of protected.
Second, getRelations return type is strictly bound to BelongsTo/BelongsToMany relation and can not be extended.
How to reproduce the bug
Trying to use SelectTree as parent class
Package Version
3.x
PHP Version
8.x
Laravel Version
11.x
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered:
Is there a particular reason you need to override the buildTree method? This method contains all the necessary logic to ensure the tree is properly constructed and displayed in the options field.
If you’re looking for more relational support, I’m always open to adding additional features!
What happened?
Trying to inherit from SelectTree ends in a mess:
First you can not reuse methods like buildTree() etc. because their scope is private instead of protected.
Second, getRelations return type is strictly bound to BelongsTo/BelongsToMany relation and can not be extended.
How to reproduce the bug
Trying to use SelectTree as parent class
Package Version
3.x
PHP Version
8.x
Laravel Version
11.x
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: