Download the PHP package imannms/laravel-s3-cache-driver without Composer
On this page you can find all versions of the php package imannms/laravel-s3-cache-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imannms/laravel-s3-cache-driver
More information about imannms/laravel-s3-cache-driver
Files in imannms/laravel-s3-cache-driver
Package laravel-s3-cache-driver
Short Description Laravel S3 cache driver. Support: Amazon S3, Digital Ocean Spaces, etc.
License MIT
Homepage https://github.com/imannms/laravel-s3-cache-driver
Informations about the package laravel-s3-cache-driver
S3 cache driver for Laravel 5 and 6. Support: Amazon S3, Digital Ocean Spaces, etc.
The repository is originally forked from Illuminate\Cache\FileStore
.
The advantages of using S3:
- S3 have an unlimited storage or big storage.
- You can cache everything without worried about running out of storage capacity.
- It's cheap!
Note: Redis, Memcached, and almost others laravel default cache store have a limited storage.
How to install
Install using composer
composer require imannms/laravel-s3-cache-driver
For Laravel 5.5+
Nothing is needed, package auto-discovery will work.
For Laravel 5.2+
Add to config/app.php
.
Add config
Add to config/cache.php
with the config template bellow.
Please choose one.
Amazon S3 config template.
Digital Ocean Spaces config template.
Finally
Run php artisan config:cache
.
How to use
Recommendation
Enable CDN on your cloud storage for faster speed.