I'm using Laravel on my website and for the admin panel, I decided to use Filament.
I have a problem that I really can't solve. I've been looking for a solution for about two days.
I set my Laravel storage to Cloudinary in filesystems.php and also changed FILESYSTEM_DISK in the .env file from local to Cloudinary.
'cloudinary' => [
'driver' => 'cloudinary',
'api_key' => env('CLOUDINARY_API_KEY'),
'api_secret' => env('CLOUDINARY_API_SECRET'),
'cloud_name' => env('CLOUDINARY_CLOUD_NAME'),
'secure' => env('CLOUDINARY_SECURE', true),
'url' => env('CLOUDINARY_URL'),
'throw' => false,
],
And this is the part of my code that is for Filament which is the uploading image part of the form.
Section::make('image')->schema([
FileUpload::make('image')
->disk('cloudinary')
->required()
->image()
->maxFiles(1)
->label('')
])->collapsible(),
When I choose an image to upload and before submitting the form, it successfully uploads the image to Cloudinary in the livewire folder that it's made but after submitting the form it throws an exception:
Resource not found - livewire-tmp/yVYWB1RelRjCXBVeW851JyAuf00ag5-metaMS5qcGc=-.jpg
I also tried to upload to Cloudinary without depending on Filament in another route. It worked perfectly fine. So I think there is a problem with Filament.
I need your help please