I'm using DigitalOcean Spaces (S3 compatible) for storing my Laravel's app file.
Now I'm trying to make a .txt file inserting in it a text, with this code:
$file = Storage::disk('digitalocean')->put('generated-file/'.$title.'.txt', $content);
return $file;
But instead of the path of the file, I get a boolean, so when I try to get the complete url with this method:
Storage::disk('digitalocean')->url($file);
I'm getting a wrong URL. How I can achieve what I want to do? (Make a new txt file, don't upload an existing one, and getting his public url on the object storage).