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:
(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
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