didbot/didbot-api
API for didbot.com
12
| Install | |
|---|---|
composer require didbot/didbot-api |
|
| Latest Version: | 0.2.1 |
| PHP: | >=7.0 |
| License: | MIT |
| Last Updated: | Apr 15, 2017 |
| Links: | GitHub · Packagist |
Maintainer: benbjurstrom
didbot-api
API for didbot.com or a self hosted didbot application.
Installation
Install the package via composer:
composer require didbot/didbot-api
Add the service provider to the config/app.php providers array
// config/app.php
'providers' => [
...
Didbot\DidbotApi\ApiServiceProvider::class
];
Finally add the Didbot\DidbotApi\Traits\HasDids trait to the User model.
use Didbot\DidbotApi\Traits\HasDids;
class User
{
use HasDids;
// ...
}
Database
To take advantage of full text search the recommended database is postgresql.