Releases: alexusmai/laravel-file-manager
v2.4.1
v2.4.0
Now you can create your own config repositories, it will allow to change your configuration dynamically.
How to do it:
Create new class - example - TestConfigRepository
namespace App\Http;
use Alexusmai\LaravelFileManager\Services\ConfigService\ConfigRepository;
class TestConfigRepository implements ConfigRepository
{
// implement all methods from interface
}
For example see src/Services/ConfigService/DefaultConfigRepository.php
- Added Serbian language (aleks989 )
- fix bug with S3, creating a new folder with ACL
- added 'maxUploadFileSize' param in to config - Max file size in KB (File uploading)
- added 'allowFileTypes' param in to config - Allowed file types for uploading
Upgrading to version 2.4
Update pre-compiled css and js files and config file - file-manager.php
// config
php artisan vendor:publish --tag=fm-config --force
// js, css
php artisan vendor:publish --tag=fm-assets --force
If you use the ACL, now you don't need to add the acl middleware to configuration.
//======= In old versions ==========
'acl' => true,
// add acl middleware to your array
'middleware' => ['web', 'fm-acl'],
//======= In a new version =========
'acl' => true,
'middleware' => ['web'],
v2.3.2
v2.3.0
In new version you can set default disk and default path
You have two variants for how to do it:
- Add this params to the config file (config/file-manager.php)
2 Or you can add this params in URL
http://site.name/?leftDisk=diskName&leftPath=directory
http://site.name/?leftDisk=diskName&leftPath=directory2&rightDisk=diskName2&rightPath=images
leftDisk and leftPath is default for the file manager windows configuration - 1,2
Upgrading to version 2.3
Update pre-compiled css and js files and config file - file-manager.php
// config
php artisan vendor:publish --tag=fm-config --force
// js, css
php artisan vendor:publish --tag=fm-assets --force
You can update the config file manually - add new params:
/**
* Default path for left manager
* null - root directory
*/
'leftPath' => null,
/**
* Default path for right manager
* null - root directory
*/
'rightPath' => null,
v2.2.3
Events
Events
- Alexusmai\LaravelFileManager\Events\DiskSelected
- Alexusmai\LaravelFileManager\Events\FilesUploading
- Alexusmai\LaravelFileManager\Events\FilesUploaded
- Alexusmai\LaravelFileManager\Events\Deleting
- Alexusmai\LaravelFileManager\Events\Deleted
- Alexusmai\LaravelFileManager\Events\Paste
- Alexusmai\LaravelFileManager\Events\Rename
- Alexusmai\LaravelFileManager\Events\Download
- Alexusmai\LaravelFileManager\Events\DirectoryCreating
- Alexusmai\LaravelFileManager\Events\DirectoryCreated
- Alexusmai\LaravelFileManager\Events\FileCreating
- Alexusmai\LaravelFileManager\Events\FileCreated
- Alexusmai\LaravelFileManager\Events\FileUpdate
Upgrading to version 2.2
src/ACLService folder and src/TransferService folder moved in src/Services folder
If you using ACL change namespace in config file for 'aclRepository'
// From
'aclRepository' => Alexusmai\LaravelFileManager\ACLService\ConfigACLRepository::class,
// To
'aclRepository' => Alexusmai\LaravelFileManager\Services\ACLService\ConfigACLRepository::class,
if you create your own repository for ACL rules, don't be forget change namespace to:
// From
Alexusmai\LaravelFileManager\ACLService;
// To
Alexusmai\LaravelFileManager\Services\ACLService;
ACL system
ACL - access control list
- delimiting access to files and folders
- two work strategies:
- blacklist - Allow everything that is not forbidden by the ACL rules list
- whitelist - Deny everything, that not allowed by the ACL rules list
- You can use different repositories for the rules - an array (configuration file), a database (there is an example implementation), or you can add your own.
- You can hide files and folders that are not accessible.
Version 2
1.0.0-alpha release
Pre-release