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.
Install the package:
composer require laravel-enso/filesRun the package migrations:
php artisan migrateOptional publishes:
php artisan vendor:publish --tag=files-config
php artisan vendor:publish --tag=files-factory- 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.
Main route groups:
core.files.*core.uploads.*administration.fileTypes.*
Signed sharing is exposed through:
route('core.files.share', ['file' => $file]);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}
Required Enso packages:
laravel-enso/core↗laravel-enso/helpers↗laravel-enso/image-transformer↗laravel-enso/migrator↗laravel-enso/track-who↗
Companion frontend package:
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!