Download the PHP package abrardev/laravel-local-temporary-url without Composer
On this page you can find all versions of the php package abrardev/laravel-local-temporary-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abrardev/laravel-local-temporary-url
More information about abrardev/laravel-local-temporary-url
Files in abrardev/laravel-local-temporary-url
Package laravel-local-temporary-url
Short Description Quickly add support for temporary url for local filesystem drivers
License MIT
Homepage https://github.com/abrardev99/laravel-local-temporary-url
Informations about the package laravel-local-temporary-url
[!CAUTION] This package has abounded in favor of Laravel 11 official support for temporary urls https://laravel.com/docs/11.x/filesystem#temporary-urls. However, you can still use this package in Laravel 10 and below.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Configuration
This package needs zero configuration, just install and it's good to go. However, if your local disk is different or you want to add another disk, you can configure it. You can add multiple local disks in the config using the disk
key.
The package applies web
and signed
middleware on routes by default, however, you can configure middleware(s) using the middleware
key.
Generate Temporary URL
You can use the same syntax used for S3 disk.
Pass Parameters
You can pass parameters to the temporaryUrl function for ef filename.
Not just file name, you can pass other options as well (with respect to disk)
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Abrar Ahmad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-local-temporary-url with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0