Skip to content

Commit 1f878f1

Browse files
committed
Fix spelling
1 parent 486e539 commit 1f878f1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you have never used the Composer dependency manager before, head to the [Comp
1717
To redact fields simply extend `RedactedModel` in your model and set the `redacted` variable to an array of the fields you want to protect. By default when accesed these fields will return `[Hidden Data]`.
1818

1919
```php
20-
class SensetiveModel extends RedactedModel
20+
class SensitiveModel extends RedactedModel
2121
{
2222
protected $redacted = ['name'];
2323
}
@@ -30,13 +30,13 @@ To conditionally redact fields override `shouldRedactField` on your model. The n
3030
_Note: Only fields specified in `$redacted` will be redacted regardless of what's returned from this method._
3131

3232
```php
33-
class SensetiveModel extends RedactedModel
33+
class SensitiveModel extends RedactedModel
3434
{
3535
protected $redacted = ['name'];
3636

3737
public function shouldRedactField($key)
3838
{
39-
return !\Auth::user()->canSeeSensetiveFields();
39+
return !\Auth::user()->canSeeSensitiveFields();
4040
}
4141
}
4242
```
@@ -47,7 +47,7 @@ class SensetiveModel extends RedactedModel
4747
To change the message returned you can set the `redactedString` on your model. This will then be returned instead of `[Hidden Data]`.
4848

4949
```php
50-
class SensetiveModel extends RedactedModel
50+
class SensitiveModel extends RedactedModel
5151
{
5252
protected $redacted = ['name'];
5353

@@ -60,18 +60,18 @@ class SensetiveModel extends RedactedModel
6060
If you want to completely omit the field instead of redacting it you can set the `redact` variable on your model to false.
6161

6262
```php
63-
class SensetiveModel extends RedactedModel
63+
class SensitiveModel extends RedactedModel
6464
{
6565
protected $redacted = ['name'];
6666

6767
protected $redact = false;
6868
}
6969
```
7070

71-
By default the array key of fields that return `null` and are in the redacted fields list will too be omitted in case the field name is sensetive. To disable this set `$redactKeys` to false on your model.
71+
By default the array key of fields that return `null` and are in the redacted fields list will too be omitted in case the field name is Sensitive. To disable this set `$redactKeys` to false on your model.
7272

7373
```php
74-
class SensetiveModel extends RedactedModel
74+
class SensitiveModel extends RedactedModel
7575
{
7676
protected $redacted = ['name'];
7777

@@ -86,7 +86,7 @@ Redacted value accessors are defined the same way as [Laravel Accessors](https:/
8686
The original value is passed into the method, this allows you to abstract the value instead of omitting or redacting it.
8787

8888
```php
89-
class SensetiveModel extends RedactedModel
89+
class SensitiveModel extends RedactedModel
9090
{
9191
protected $redacted = ['name'];
9292

0 commit comments

Comments
 (0)