Package
Spatie Laravel Google Cloud Storage
Google Cloud Storage filesystem driver for Laravel
Overview
What Spatie Laravel Google Cloud Storage does
Spatie's Laravel Google Cloud Storage package integrates Google Cloud Storage seamlessly into Laravel applications.
This package acts as a filesystem driver, allowing developers to use Google Cloud Storage through Laravel's familiar filesystem API. Built for Laravel 9 and above, it relies on Flysystem v3 and a custom Google Cloud Storage adapter to handle storage operations.
Developers configure the package by adding a new disk to the `filesystems.php` configuration file, making it simple to switch storage from local disks or other cloud services to Google's offering. With support for operations like file uploading, URL generation, and file visibility control, it aligns closely with native Laravel disk functions.
The package offers options for authentication, supporting various methods to connect with Google Cloud's API. Developers can provide a JSON key file, use environment variables, or rely on built-in service accounts if running on Google infrastructure.
A notable feature is the ability to generate temporary signed URLs, facilitating secure file access without making files public. Additionally, the package handles uniform bucket-level access permissions, addressing common errors encountered when this security setting is enabled.
This overview was generated by AI from the package README and may not reflect the latest release.
Read the full README →