-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Environment:
- solution-forest/filament-tree: 3.1.2 (latest)
- PHP: 8.4.12
- Laravel: 11.46.0
- FilamentPHP: v4.0
Issue:
The SolutionForest\FilamentTree\Concern\ModelTree trait cannot be autoloaded despite being present in
vendor/solution-forest/filament-tree/src/Concern/ModelTree.php. The error occurs when adding use ModelTree; to any model class:
PHP Fatal error: Trait "SolutionForest\FilamentTree\Concern\ModelTree" not found
How to reproduce the bug
Steps to reproduce:
- Install latest filament-tree package via composer
- Add use SolutionForest\FilamentTree\Concern\ModelTree; to model
- Add use ModelTree; inside class
- Run any artisan command
Expected: Trait should be autoloaded successfully
Actual: Fatal error occurs
Additional notes: Commands like make:filament-tree-page are also not being registered, suggesting a broader service provider autoloading issue
specific to this PHP/Laravel/Filament combination.
Package Version
3.1.2
PHP Version
8.4.12
Laravel Version
11.46.0
Which operating systems does with happen with?
Windows
Notes
No response
Naram-Alkoht
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working