joshembling / image-optimizer

🎨 Optimize your Filament images before they reach your database.
https://filamentphp.com/plugins/joshembling-image-optimizer
MIT License
66 stars 14 forks source link

[Bug]: Method 'optimize' not found in \Filament\Forms\Components\FileUpload #6

Closed faizananwerali closed 1 year ago

faizananwerali commented 1 year ago

What happened?

Method 'optimize' not found in \Filament\Forms\Components\FileUpload

How to reproduce the bug

follow the readme.md file

Package Version

latest

PHP Version

v8.1.19

Laravel Version

v10.14.0

Which operating systems does with happen with?

macOS

Notes

No response

joshembling commented 1 year ago

Hi @faizananwerali

Thanks for flagging this. Fixed in v1.2.0.

https://github.com/joshembling/image-optimizer/releases/tag/v1.2.0 https://packagist.org/packages/joshembling/image-optimizer#v1.2.0

faizananwerali commented 1 year ago

Still same error after update

faizananwerali commented 1 year ago

Can you share the demo application where it is working for you? because the Filament\Forms\Components\FileUpload class is from the Filament package and it doesn't have an 'optimize' method.

joshembling commented 1 year ago

Still same error after update

@faizananwerali I can't recreate this error after updating. Can you send me your repository?

faizananwerali commented 1 year ago

Can you please share the demo application repo where it is working for you?

joshembling commented 1 year ago

@faizananwerali Yes sure thing - https://github.com/joshembling/image-optimizer-demo

Grazulex commented 2 months ago

hello,still no feedback..I have the same error but only in prod, not local :-(