F
Filamentβ€’2mo ago
Bomee

Filament 3->4 upgrade checker

Hi. I'm fooling around with upgrading from 3->4 and needed a thing to check namespace changes etc so I had Claude cook up this script. Posting in case it's helpful [Link removed - there are offical scripts!]
10 Replies
Dan Harrin
Dan Harrinβ€’2mo ago
May I ask, what is the difference between this and the normal upgrade script?
Bomee
BomeeOPβ€’2mo ago
Hi Dan - I don't know, frankly. I ran the upgrade and all the namespaces in my custom panels broke. I spent 5 minutes on it. If it's not helpful, then oh well πŸ™‚ Also, I'm just checking Filament out to see if we want to use it in our product. We don't currently, so I'm a Filament newbie -- unfortunately, I just happened to start playing with it on the cusp of this new version being released.
Dan Harrin
Dan Harrinβ€’2mo ago
Hmm ok, just letting you know that the stuff mentioned in your script seems to be the same as in the official ones
Bomee
BomeeOPβ€’2mo ago
Would it help if posted a list of the breaking changes? And were there scripts to be run beyond php artisan filament:upgrade? 1. Run upgrade command β†’ Fatal error: navigationIcon type 2. Fix navigationIcon β†’ Run again β†’ Fatal error: form() signature 3. Fix form() β†’ Run again β†’ Fatal error: infolist() signature 4. Fix infolist() β†’ Run again β†’ Fatal error: static $view 5. Fix $view β†’ Run again β†’ Fatal error: HasInfolists interface 6. Fix interfaces β†’ Run again β†’ Finally succeeds (publishes assets) At this point, ran the custom script to get the in-component changes that cause runtime borks, ran sed scripts to fix them.
Dan Harrin
Dan Harrinβ€’2mo ago
what did you provide as the directory for the script to run on
Bomee
BomeeOPβ€’2mo ago
Do you mean the install script? I ran the artisan command from the root of the repo
Dennis Koch
Dennis Kochβ€’2mo ago
But which dir did you select in the script? It asks to provide a dir to process
Dan Harrin
Dan Harrinβ€’2mo ago
its also not an artisan command its just a normal console command if you ran an artisan command first to upgrade , you probably missed a step
Bomee
BomeeOPβ€’2mo ago
@Dan Harrin ah! Thanks! I'll start over!
Dan Harrin
Dan Harrinβ€’2mo ago
let me know if anything doesnt look right everything you need to upgrade should be in the script or guide

Did you find this page helpful?