Skip to content

Commit

Permalink
[feat] add permit_empty config to readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Jan 20, 2024
1 parent af60b57 commit 8d28019
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ return [
'key' => env('CIPHERSWEET_KEY'),
],
],

/*
* The provided code snippet checks whether the $permitEmpty property is set to false
* for a given field. If it is not set to false, it throws an EmptyFieldException indicating
* that the field is not defined in the row. This ensures that the code enforces the requirement for
* the field to have a value and alerts the user if it is empty or undefined.
* Supported: "true", "false"
*/
'permit_empty' => env('CIPHERSWEET_PERMIT_EMPTY', FALSE)

];
```

Expand Down

0 comments on commit 8d28019

Please sign in to comment.