Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seancheung committed Mar 22, 2024
1 parent 59c0871 commit 4b1c238
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# History

Eloquent model history tracking for Laravel (NOW WITH AUTOLOAD!)
Eloquent model history tracking for Laravel

## Installation

Expand All @@ -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*

Expand Down Expand Up @@ -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',
]
```

Expand Down Expand Up @@ -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'
],
/*
|--------------------------------------------------------------
Expand All @@ -290,7 +290,7 @@ You may set whitelist and blacklist in config file. Please follow the descriptio
|
*/
'env_blacklist' => [

// 'test'
],
```

Expand All @@ -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.
Expand Down
13 changes: 7 additions & 6 deletions src/config/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],

/*
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/lang/en/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
];
4 changes: 2 additions & 2 deletions src/lang/zh-CN/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '翻译名称',
]
];

0 comments on commit 4b1c238

Please sign in to comment.