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
May I ask, what is the difference between this and the normal upgrade script?
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.
Hmm ok, just letting you know that the stuff mentioned in your script seems to be the same as in the official ones
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.what did you provide as the directory for the script to run on
Do you mean the install script? I ran the artisan command from the root of the repo
But which dir did you select in the script? It asks to provide a dir to process
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
@Dan Harrin ah! Thanks! I'll start over!
let me know if anything doesnt look right
everything you need to upgrade should be in the script or guide