Download the PHP package alighale/laravel-file-manager without Composer
On this page you can find all versions of the php package alighale/laravel-file-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alighale/laravel-file-manager
More information about alighale/laravel-file-manager
Files in alighale/laravel-file-manager
Download alighale/laravel-file-manager
More information about alighale/laravel-file-manager
Files in alighale/laravel-file-manager
Vendor alighale
Package laravel-file-manager
Short Description Upload file and download it :)
License
Homepage https://github.com/AliGhaleyan/laravel-file-manager
Package laravel-file-manager
Short Description Upload file and download it :)
License
Homepage https://github.com/AliGhaleyan/laravel-file-manager
Please rate this library. Is it a good library?
Informations about the package laravel-file-manager
## 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 AliGhale\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 \AliGhale\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-manager with dependencies
PHP Build Version
Package Version
The package alighale/laravel-file-manager contains the following files
Loading the files please wait ....