Skip to content

Commit

Permalink
add original_hash document creation
Browse files Browse the repository at this point in the history
  • Loading branch information
genaromadrid committed Feb 16, 2016
1 parent 72abe40 commit 275b23a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ Document methods:

- Create:

> Use only **original_hash** if you dont want us to have the file.<br>
> Only **file** or **original_hash** must be provided.
```php
use Mifiel\Document;
$document = new Document([
'file' => 'path/to/my-file.pdf',
// OR
'original_hash' => hash('sha256', 'some-file-contents'),
'signatories' => [
{
'name' => 'Signer 1',
Expand All @@ -67,6 +72,7 @@ Document methods:
}
]
])
$document->save();
```

- Delete
Expand Down

0 comments on commit 275b23a

Please sign in to comment.