Reputation: 208
I have a Laravel app that uploads pictures to S3 or to local storage. But I can't upload to GCS. Is Laravel media library compatible with any GCS library? I'm asking this because I keep on getting:
"message "Call to undefined method League\Flysystem\Filesystem::makeDirectory()" exception "Error" file "/var/www/html/vendor/spatie/laravel-medialibrary/src/MediaCollections/Filesystem.php" line 317"
When I look at Filesystem, it has createDirectory() instead of makeDirectory().
So is there any library that I can use to upload to GCS?
Upvotes: 0
Views: 659
Reputation: 119
You can use this package . You can install the package via composer:
composer require spatie/laravel-google-cloud-storage
Upvotes: 1