定制 iritesh377/laravel-local-temporary-url 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iritesh377/laravel-local-temporary-url

最新稳定版本:v1.0.0

Composer 安装命令:

composer require iritesh377/laravel-local-temporary-url

包简介

Quickly add support for temporary url for local filesystem drivers

README 文档

README

Logo

Installation

You can install the package via composer:

composer require iritesh377/laravel-local-temporary-url

You can publish the config file with:

php artisan vendor:publish --tag="local-temporary-url-config"

This is the contents of the published config file:

return [
    'disk' => ['local'],

    'middleware' => ['web', 'signed']
];

Usage

Configuration

This package requires no configuration; simply install it and it's ready to use. However, if you wish to utilize a different local disk or add additional disks, configuration options are available. Multiple local disks can be configured using the disk key.

By default, the package applies web and signed middleware on routes. Nevertheless, you have the flexibility to configure middleware(s) by using the middleware key.

Generate Temporary URL

Temporary URLs can be generated using the same syntax as for the S3 disk.

Storage::disk('local')->temporaryUrl('file.txt', now()->addMinutes(5));

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-21