How to Upgrade to v3.2?
composer update
php artisan filament:upgrade
At php artisan about, I have: Filament Version ............... v3.1.47
19 Replies
Probably a conflict or a constraint on the version. Try
composer require filament/filament:^3.2
and see what error it outputsfilament/filament v3.2.0 requires filament/actions v3.2.0 -> found filament/actions[v3.2.0] but the package is fixed to v3.1.47 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Ah sorry, try
composer require -W filament/filament:^3.2
ok, now the version is v3.2.24. but I can't use Filament\Tables\Actions\ExportAction;, it says Class...not found
Please share the exact error #✅┊rules
Class "App\Filament\Exports\ProductExporter" not found
That's a different error than you just shared
Did you create the actual file that you are trying to import?
I'm using in a custom page a filament table and use
That doesn't answer my question. Did you create
App\Filament\Exports\ProductExporter
?no
There's your answer 😅
yeah😅 , thanks, is there an option to download the file when export? or is just saving the file in storage?
I don't know. I haven't used the Export Action yet, but I guess a download should be the default?!
This is the message I got after export and the files are in storage.
Jessy it doesn't download the file.. I upgraded filament for the same thing. If you are interest i did a simple table that point to the exports table
(i still trying to figure out how a plugin like that can be useful btw)
I did something like:
Ty! I will try this. This is just a livewire component with extends BaseWidget?
It's not. It is a table widget that I render inside a modal on the resource, but you can actually just utilize the same logic as you wish. As you can see it is attached with an Exports Model that will automatically query the exports table!
Have fun 😊
I've made it, with Storage::download I got an error but I use the url with redirect. And I also got an error on ExportAction(), a column is not found, but the same raws are exported with ExportBulkAction. I don't understand why ExportBulkAction works and ExportAction don't, in my case.
You must "return" the download method or it won't work.
For the other issue maybe put the code I'll try to help tomorrow