From 4ad58cb7117ab23dc2a96bdf748f120db4945433 Mon Sep 17 00:00:00 2001 From: Stream Date: Tue, 3 Jan 2017 17:54:33 +0800 Subject: [PATCH] update docs for 1.6.3 release --- docs/config.md | 16 ++++++++++++++-- docs/events.md | 4 ++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/config.md b/docs/config.md index c7b70097..7d606784 100644 --- a/docs/config.md +++ b/docs/config.md @@ -19,12 +19,15 @@ In `config/lfm.php` : // true : filter filename characters which are not alphanumeric, and replace them with '_' 'alphanumeric_filename' => true, + // true : filter folder name characters which are not alphanumeric, and replace them with '_' + 'alphanumeric_directory' => false, + 'use_package_routes' => true, // set this to false to customize route for file manager - 'middlewares' => ['auth'], + 'middlewares' => ['web','auth'], // determine middlewares that apply to all file manager routes - // NOTE: for laravel 5.2, please use ['web', 'auth'] + // NOTE: for laravel 5.1, please use ['auth'] 'allow_multi_user' => true, // true : user can upload files to shared folder and their own folder @@ -43,10 +46,19 @@ In `config/lfm.php` : 'images_url' => '/photos/', // path and url of images + 'images_startup_view' => 'list', + // default view type for images + 'files_dir' => 'public/files/', 'files_url' => '/files/', // path and url of files + 'files_startup_view' => 'list', + // default view type for files + + 'max_image_size' => 500, + 'max_file_size' => 1000, + // max uploading size for images/files // valid image mimetypes 'valid_image_mimetypes' => [ diff --git a/docs/events.md b/docs/events.md index f6d4d78e..27f9cc02 100644 --- a/docs/events.md +++ b/docs/events.md @@ -8,9 +8,13 @@ 1. [Upgrade](https://github.com/UniSharp/laravel-filemanager/blob/master/docs/upgrade.md) ## List of events + * Unisharp\Laravelfilemanager\Events\ImageIsUpload * Unisharp\Laravelfilemanager\Events\ImageWasUploaded + * Unisharp\Laravelfilemanager\Events\ImageIsRenaming * Unisharp\Laravelfilemanager\Events\ImageWasRenamed + * Unisharp\Laravelfilemanager\Events\ImageIsDeleting * Unisharp\Laravelfilemanager\Events\ImageWasDeleted + * Unisharp\Laravelfilemanager\Events\FolderIsRenaming * Unisharp\Laravelfilemanager\Events\FolderWasRenamed ## How to use