Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<p align="center">
<img src="https://miro.medium.com/max/638/0*o30AAwcHRvsA840O.jpg">
</p>
Expand Down Expand Up @@ -66,14 +67,27 @@ return [
];
```

Now you can use the ```IPFS``` Facade!

Now you can use the ```IPFS``` Facade!
Sample Controller - DemoIPFSController
```php
$fileHash = IPFS::add($collectible->get(), $fileName, ['only-hash' => true])['Hash'];
<?php

namespace App\Http\Controllers;

use Rootsoft\IPFS\IPFSFacade as IPFS;

class DemoIPFSController extends Controller{
public function index(){
$fileHash = IPFS::add('Hello World')['Hash'];
dd($fileHash);
}
}
```

## Methods

Since this an awesome wrapper for Laravel applications, you can check out the methods here. https://github.com/cloutier/php-ipfs-api
add, cat, ls, size, pinAdd, pinRm and so on.

## Changelog

Expand Down Expand Up @@ -103,4 +117,4 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[issues-shield]: https://img.shields.io/github/issues/rootsoft/laravel-ipfs.svg?style=for-the-badge
[issues-url]: https://github.com/rootsoft/laravel-ipfs/issues
[license-shield]: https://img.shields.io/github/license/rootsoft/laravel-ipfs.svg?style=for-the-badge
[license-url]: https://github.com/rootsoft/laravel-ipfs/blob/master/LICENSE.md
[license-url]: https://github.com/rootsoft/laravel-ipfs/blob/master/LICENSE.md