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'],