F
Filamentβ€’4mo ago
frame

Disable filament upgrade script from importing absolute classes

Is there any way to keep filament v4 upgrade script from turning all usages of new \App\Models\User; to use App\Models\User; ... new User;?
Solution:
I think that would be way more work on our side and it can be fixed with Pint.
Jump to solution
4 Replies
Solution
Dennis Koch
Dennis Kochβ€’4mo ago
I think that would be way more work on our side and it can be fixed with Pint.
frame
frameOPβ€’4mo ago
Do you mean set some pint configuration to disable it? πŸ‘€ Or somehow revert the changes afterwards? I do have pint and rector set up, and was wondering if there is some rule that might help in case the upgrade script uses pint.json or rector.php
Dan Harrin
Dan Harrinβ€’4mo ago
We can def add an option to the upgrade script, but it will leave unimported classes everywhere that we add during the upgrade. Might be worse, its up to you
frame
frameOPβ€’4mo ago
I think its just me making noise and I only have a single project so not worth it, I'll handle it manually πŸ’–

Did you find this page helpful?