FilamentF
Filament16mo ago
ffffer.

FileUpload for Cloudflare Images

Hi,

I have a Forms\Components\FileUpload, and when editing, I want to show an image in a URL (not in the disk), something like:

Forms\Components\FileUpload::make('image') ->formatStateUsing(function($record) { return 'https://picsum.photos/200'; })

(that code fails with error: foreach() argument must be of type array|object, string given)

How can I show the image in the URL?

Thanks
Was this page helpful?