I was given a task to maintain a Laravel project with Vue.js (inertia) (not very experienced with both). Now we need to switch the host to Azure and I am stuck on the file storage. Specifically, I am not sure how to upload files from Laravel to the Blob. I am already using https://github.com/matthewbdaly/laravel-azure-storage which is a convenient way to connect the driver.
My driver in filesystem.php (details are correct):
'azure' => [
'driver' => 'azure',
'name' => env('AZURE_STORAGE_NAME'),
'key' => env('AZURE_STORAGE_KEY'),
'container' => env('AZURE_STORAGE_CONTAINER'),
'url' => env('AZURE_STORAGE_URL'),
'prefix' => null,
],
my controller:
$url = request()->file->store('azure');
Please help!
base64
image? – Kamlesh Paulstore('<path>','<file_name>','azure')
: laravel.com/docs/8.x/filesystem#specifying-a-disk – Jim Xu