Skip to content

Commit 275b23a

Browse files
committed
add original_hash document creation
1 parent 72abe40 commit 275b23a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Readme.md

+6
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@ Document methods:
5050

5151
- Create:
5252

53+
> Use only **original_hash** if you dont want us to have the file.<br>
54+
> Only **file** or **original_hash** must be provided.
55+
5356
```php
5457
use Mifiel\Document;
5558
$document = new Document([
5659
'file' => 'path/to/my-file.pdf',
60+
// OR
61+
'original_hash' => hash('sha256', 'some-file-contents'),
5762
'signatories' => [
5863
{
5964
'name' => 'Signer 1',
@@ -67,6 +72,7 @@ Document methods:
6772
}
6873
]
6974
])
75+
$document->save();
7076
```
7177

7278
- Delete

0 commit comments

Comments
 (0)