diff --git a/README.md b/README.md index 6b5f211..839e0bf 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,7 @@ 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' => '组件模板', @@ -270,16 +270,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 +291,7 @@ You may set whitelist and blacklist in config file. Please follow the descriptio | */ 'env_blacklist' => [ - + // 'test' ], ``` @@ -303,7 +304,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..a6719be 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_name_in_snake_case' => 'translation', ] ]; diff --git a/src/lang/zh-CN/history.php b/src/lang/zh-CN/history.php index a2a70ba..e94c26f 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_name_in_snake_case' => '翻译名称', ] ];