diff --git a/README.md b/README.md index 6b5f211..3270609 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ # History -Eloquent model history tracking for Laravel (NOW WITH AUTOLOAD!) +Eloquent model history tracking for Laravel ## Installation @@ -30,8 +30,6 @@ composer require "panoscape/history:^1.0" > Only required for Laravel 5.6.x -> NO NEED for version 2.0+ which is auto-loaded with [Package Discovery](https://laravel.com/docs/6.x/packages#package-discovery) - *config/app.php* @@ -222,10 +220,11 @@ Example language config 'restored' => ':model:labelを復元', -//you may added your own model name language line here +//you may add your own model name language line here 'models' => [ 'project' => '项目', 'component_template' => '组件模板', + // 'model_base_name_in_snake_case' => 'translation', ] ``` @@ -270,16 +269,17 @@ You may set whitelist and blacklist in config file. Please follow the descriptio /* |-------------------------------------------------------------- -| User blacklist +| User type blacklist |-------------------------------------------------------------- | -| Operations performed by users in this array will NOT be recorded. -| Please add the whole class names. Example: \App\User:class +| Operations performed by user types in this array will NOT be recorded. +| Please add the whole class names. Example: \App\Admin:class | Use 'nobody' to bypass unauthenticated operations | */ 'user_blacklist' => [ - + // \App\Admin:class, + // 'nobody' ], /* |-------------------------------------------------------------- @@ -290,7 +290,7 @@ You may set whitelist and blacklist in config file. Please follow the descriptio | */ 'env_blacklist' => [ - + // 'test' ], ``` @@ -303,7 +303,7 @@ To fix this, you'll need to enable custom auth guards scanning in config file: ```php /* |-------------------------------------------------------------- -| Enable auth guards scan +| Enable auth guards scanning |-------------------------------------------------------------- | | You only need to enable this if your users are using non-default auth guards. diff --git a/src/config/history.php b/src/config/history.php index 544aab8..8b3d46b 100644 --- a/src/config/history.php +++ b/src/config/history.php @@ -50,16 +50,17 @@ /* |-------------------------------------------------------------- - | User blacklist + | User type blacklist |-------------------------------------------------------------- | - | Operations performed by users in this array will NOT be recorded. - | Please add the whole class names. Example: \App\User:class + | Operations performed by user types in this array will NOT be recorded. + | Please add the whole class names. Example: \App\Admin:class | Use 'nobody' to bypass unauthenticated operations | */ 'user_blacklist' => [ - + // \App\Admin:class, + // 'nobody' ], /* @@ -91,12 +92,12 @@ | */ 'env_blacklist' => [ - + // 'test' ], /* |-------------------------------------------------------------- - | Enable auth guards scan + | Enable auth guards scanning |-------------------------------------------------------------- | | You only need to enable this if your users are using non-default auth guards. diff --git a/src/lang/en/history.php b/src/lang/en/history.php index aa2878b..6667b68 100644 --- a/src/lang/en/history.php +++ b/src/lang/en/history.php @@ -21,8 +21,8 @@ 'restored' => 'Restored :model :label', - //you may added your own model name language line here + //you may add your own model name language line here 'models' => [ - + // 'model_base_name_in_snake_case' => 'translation', ] ]; diff --git a/src/lang/zh-CN/history.php b/src/lang/zh-CN/history.php index a2a70ba..e16e47e 100644 --- a/src/lang/zh-CN/history.php +++ b/src/lang/zh-CN/history.php @@ -21,8 +21,8 @@ 'restored' => '恢复:model :label', - //you may added your own model name language line here + //you may add your own model name language line here 'models' => [ - + // 'model_base_name_in_snake_case' => '翻译名称', ] ];