laravel-enso/filemanager
最新稳定版本:5.7.7
Composer 安装命令:
composer require laravel-enso/filemanager
包简介
File management backend for Laravel Enso
README 文档
README
Description
File Manager adds Enso file uploads, browsing, sharing, and type administration.
The package stores files and uploads, supports recent and favorite lists, generates temporary links, exposes signed share links for public access, and lets administrators manage file types through form and table endpoints.
It is intended to back the Enso file-manager UI and other modules that need attachable files.
Installation
Install the package:
composer require laravel-enso/files
Run the package migrations:
php artisan migrate
Optional publishes:
php artisan vendor:publish --tag=files-config php artisan vendor:publish --tag=files-factory
Features
- Upload store and destroy endpoints.
- File browsing, download, show, rename, favorite, recent, and visibility-toggle endpoints.
- Signed share links for externally accessible files.
- File-type CRUD with form and table builders.
- Image processing hooks and upload validation services.
Usage
Main route groups:
core.files.*core.uploads.*administration.fileTypes.*
Signed sharing is exposed through:
route('core.files.share', ['file' => $file]);
API
HTTP routes
GET api/core/files/link/{file}GET api/core/files/download/{file}DELETE api/core/files/{file}GET api/core/files/show/{file}GET api/core/files/browse/{type}GET api/core/files/recentGET api/core/files/favoritesPATCH api/core/files/{file}PATCH api/core/files/makePublic/{file}PATCH api/core/files/makePrivate/{file}PATCH api/core/files/favorite/{file}POST api/core/uploads/storeDELETE api/core/uploads/{upload}GET api/administration/fileTypes/createPOST api/administration/fileTypesGET api/administration/fileTypes/{type}/editPATCH api/administration/fileTypes/{type}DELETE api/administration/fileTypes/{type}
Depends On
Required Enso packages:
laravel-enso/core↗laravel-enso/helpers↗laravel-enso/image-transformer↗laravel-enso/migrator↗laravel-enso/track-who↗
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
统计信息
- 总下载量: 16.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-19