Download the PHP package curly-deni/laravel-storage without Composer
On this page you can find all versions of the php package curly-deni/laravel-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download curly-deni/laravel-storage
More information about curly-deni/laravel-storage
Files in curly-deni/laravel-storage
Package laravel-storage
Short Description Laravel file storage with polymorphic file records and customizable filesystem adapters.
License MIT
Homepage https://github.com/curly-deni/laravel-storage
Informations about the package laravel-storage
Laravel Storage
curly-deni/laravel-storage adds polymorphic file records and filesystem helpers
to Laravel applications. The package namespace is Aesis\Storage.
Installation
Publish the configuration when you need to change the defaults:
The storage.table option defaults to storage__files, preserving the table
name used by the application module. Set storage.public_disk to override the
default disk. When it is null, the package uses filesystems.public if your
application defines it, and otherwise uses public.
Store files
Files are associated with an Eloquent model through a nullable polymorphic
owner relation. The default storeContents method writes to the configured
public disk. Other methods allow selecting a disk or copying a stream/file from
another disk.
Available storage methods are storeContents, storeContentsOnDisk,
storeStreamOnDisk, and storeFromDisk. An external filesystem value treats
the file path as an already resolved URL and skips filesystem deletion.
Filesystem adapter
The package registers the aesis_s3 filesystem driver. It retains the path
prefix from an S3 endpoint when building URLs, including path-style endpoints
used by S3-compatible services. Disks using the driver keep Laravel's regular
S3 options such as key, secret, region, bucket, url, endpoint, and
use_path_style_endpoint.
The source application adds two disk options consumed by the package's
accessUrl method:
url_accessselects URL generation.publiccalls the disk'surl()method; any other value generates a temporary URL.temporary_url_ttlsets the default temporary URL lifetime in minutes. It defaults to30when omitted and is used unless a caller passes an explicit expiration time.
The private S3 disk can also set Laravel's temporary_url option to replace
the base URL used for signed links. The custom S3 adapter preserves any path
prefix in that URL. This is useful when the S3 API endpoint and the URL exposed
to clients are different.
For example, the source app configures private files for expiring URLs and public files for stable URLs:
Testing and code style
License
MIT. See LICENSE.md.
All versions of laravel-storage with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0
illuminate/filesystem Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
league/flysystem-aws-s3-v3 Version ^3.25