diff --git a/README.md b/README.md index 1922892..c7c42f0 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ **Vue.js Frontend:** [alexusmai/vue-laravel-file-manager](https://github.com/alexusmai/vue-laravel-file-manager) +**--- Laravel 7 support added but not fully tested!! ---** + ## Documentation [Laravel File Manager Docs](./docs/index.md) @@ -64,7 +66,7 @@ * Events (v2.2) * Thumbnails lazy load * Dynamic configuration (v2.4) -* Supported locales : ru, en, ar, sr, cs, de, es, nl, zh-CN, fa, it, tr +* Supported locales : ru, en, ar, sr, cs, de, es, nl, zh-CN, fa, it, tr, fr, pt_BR ## In a new version 2.4 diff --git a/composer.json b/composer.json index 5d623b1..5e93e8f 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": ">=7.1.0", "ext-zip": "*", "ext-json": "*", - "laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0", + "laravel/framework": "^5.5|^6.0|^7.0", "league/flysystem": "^1.0", "intervention/image": "^2.4", "intervention/imagecache": "^2.3" diff --git a/docs/events.md b/docs/events.md index d04aaa4..fff05c7 100644 --- a/docs/events.md +++ b/docs/events.md @@ -1,5 +1,19 @@ # Events +### BeforeInitialization + +> Alexusmai\LaravelFileManager\Events\DBeforeInitialization + +Example: + +```php +\Event::listen('Alexusmai\LaravelFileManager\Events\BeforeInitialization', + function ($event) { + + } +); +``` + ### DiskSelected > Alexusmai\LaravelFileManager\Events\DiskSelected diff --git a/resources/views/ckeditor.blade.php b/resources/views/ckeditor.blade.php index 7ead99f..8c9fc39 100644 --- a/resources/views/ckeditor.blade.php +++ b/resources/views/ckeditor.blade.php @@ -10,8 +10,8 @@ {{ config('app.name', 'File Manager') }} - - + + diff --git a/resources/views/fmButton.blade.php b/resources/views/fmButton.blade.php index c58a3b0..26a360c 100644 --- a/resources/views/fmButton.blade.php +++ b/resources/views/fmButton.blade.php @@ -10,8 +10,8 @@ {{ config('app.name', 'File Manager') }} - - + + diff --git a/resources/views/summernote.blade.php b/resources/views/summernote.blade.php index c58a3b0..26a360c 100644 --- a/resources/views/summernote.blade.php +++ b/resources/views/summernote.blade.php @@ -10,8 +10,8 @@ {{ config('app.name', 'File Manager') }} - - + + diff --git a/resources/views/tinymce.blade.php b/resources/views/tinymce.blade.php index 1a50781..074e13f 100644 --- a/resources/views/tinymce.blade.php +++ b/resources/views/tinymce.blade.php @@ -10,8 +10,8 @@ {{ config('app.name', 'File Manager') }} - - + + diff --git a/resources/views/tinymce5.blade.php b/resources/views/tinymce5.blade.php index 233e07a..c9caf20 100644 --- a/resources/views/tinymce5.blade.php +++ b/resources/views/tinymce5.blade.php @@ -10,8 +10,8 @@ {{ config('app.name', 'File Manager') }} - - + + diff --git a/src/Controllers/FileManagerController.php b/src/Controllers/FileManagerController.php index ea77c83..e81d81d 100644 --- a/src/Controllers/FileManagerController.php +++ b/src/Controllers/FileManagerController.php @@ -2,6 +2,7 @@ namespace Alexusmai\LaravelFileManager\Controllers; +use Alexusmai\LaravelFileManager\Events\BeforeInitialization; use Alexusmai\LaravelFileManager\Events\Deleting; use Alexusmai\LaravelFileManager\Events\DirectoryCreated; use Alexusmai\LaravelFileManager\Events\DirectoryCreating; @@ -44,6 +45,8 @@ public function __construct(FileManager $fm) */ public function initialize() { + event(new BeforeInitialization()); + return response()->json( $this->fm->initialize() ); diff --git a/src/Events/BeforeInitialization.php b/src/Events/BeforeInitialization.php new file mode 100644 index 0000000..04e308c --- /dev/null +++ b/src/Events/BeforeInitialization.php @@ -0,0 +1,14 @@ +