Laravel Backblaze
B2-Backblaze Storage Adapter for Laravel 5+ Backblaze B2 is a cloud storage system comparable to Amazons S3. This adapter allows you to use B2 within Laravel 5+ applications. Tested are Laravel 5, 6, 7, and 8. At bring your own ideas Ltd. It is used in combination with spatie's Laravel backup to backup our Laravel projects. I am using spatie/laravel-medialibrary:8.2 package on my laravel 7.6 project. I am going to store media data on Backblaze Cloud Storage using gliterd/laravel-backblaze-b2 package. I made file driver called media as following and using it in media-library.php as file driver. When I uploaded file, it stored on exact directory what I wanted.
I am working on a Laravel project and decided to use a Backblaze bucket as it’s cheaper for storage when compared to AWS S3. I couldn’t find a tutorial on how to get it working from scratch and I tested a bunch of Laravel B2 libraries that didn’t end up working. The good news is that you don’t need a special B2 plugin and instead can use the S3 package recommended by the Laravel docs.
If you haven’t added the flysystem-aws-s3 package, add it to your project using composer:
Login to your B2 account and create your bucket with your required settings. Once created, you’ll want to create a new application key with the permissions you need for your app. You should get a confirmation once it’s generated:
Open your .env file and locate the settings for AWS. You’ll need to add one key that’s not there by default:
Match the settings in your .env from the application key to the values below.
Now you should be able to call the Laravel storage system like normal:
I am working on a Laravel project and decided to use a Backblaze bucket as it’s cheaper for storage when compared to AWS S3. I couldn’t find a tutorial on how to get it working from scratch and I tested a bunch of Laravel B2 libraries that didn’t end up working. The good news is that you don’t need a special B2 plugin and instead can use the S3 package recommended by the Laravel docs.
If you haven’t added the flysystem-aws-s3 package, add it to your project using composer:
Laravel Backblaze Tutorial
Login to your B2 account and create your bucket with your required settings. Once created, you’ll want to create a new application key with the permissions you need for your app. You should get a confirmation once it’s generated:
Open your .env file and locate the settings for AWS. You’ll need to add one key that’s not there by default:
Match the settings in your .env from the application key to the values below.
Laravel Backblaze Free
Now you should be able to call the Laravel storage system like normal: