Download the PHP package twom/laravel-file-manger without Composer
On this page you can find all versions of the php package twom/laravel-file-manger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download twom/laravel-file-manger
More information about twom/laravel-file-manger
Files in twom/laravel-file-manger
Download twom/laravel-file-manger
More information about twom/laravel-file-manger
Files in twom/laravel-file-manger
Vendor twom
Package laravel-file-manger
Short Description Upload file and download it :)
License
Homepage https://github.com/Twom2020/laravel-file-manager
Package laravel-file-manger
Short Description Upload file and download it :)
License
Homepage https://github.com/Twom2020/laravel-file-manager
Please rate this library. Is it a good library?
Informations about the package laravel-file-manger
## Laravel File Manager
Installation:
You must add the service provider to config/app.php
Publish your config file and migrations
Config:
config/filemanager.php
Config Parameters
name | type | description |
---|---|---|
provider | string (class name) |
provider class name, must be extended of Twom\FileManager\BaseType |
path | string |
file upload path |
private | boolean |
is private or no if is true so upload file in storage folder else if is false so upload file in public folder |
date_time_prefix | boolean |
if is true so upload file with /{year}/{month}/{day} prefix |
use_file_name_to_upload | boolean |
if is true we use of the file original name else we generate a random name |
secret | string |
secret key for generate download link and download file |
download_link_expire | boolean |
generated download link expire time |
parent | string |
parent type name |
sizes | array |
array of sizes and there are only for image type |
thumb | string or number |
size for thumb image and this is only for image type |
Lets start to use:
Upload a file:
You can use of this methods:
method | description |
---|---|
useFileNameToUpload($status = true) |
if is true we use of the file original name else we generate a random name |
type($type = null) |
change type for upload if is null so use of default type |
getFile($name = null) |
get file by name and return a \Twom\FileManager\Models\File |
setPath($path) |
set file upload path |
delete($filename) |
delete the file help by this provider type |
getUploadPath() |
get upload path |
dateTimePrefix($value = true) |
if is true so upload file with /{year}/{month}/{day} prefix |
setName(string $name) |
set file name |
setFormat(string $format) |
set format for file upload |
isPrivate() |
if you call this so upload file in storage folder and your you don't have permission to access this file |
isPublic() |
if you call this so upload file in public folder and has access to this file |
Examples:
Change type:
All versions of laravel-file-manger with dependencies
PHP Build Version
Package Version
The package twom/laravel-file-manger contains the following files
Loading the files please wait ....