/couchbase

Primary LanguagePHPGNU Lesser General Public License v3.0LGPL-3.0

PHP Couchbase client for Laravel

Couchbase client for Eloquent ORM

Features

All models are inherited from Illuminate\Database\Eloquent\Model so most methods work natively

Installation

The preferred way to install this extension is through composer.

Either run

composer require nailfor/couchbase

or add

"nailfor/couchbase" : "*"

to the require section of your application's composer.json file.

Configure

Add config/app.php

    'providers' => [
        ...
        nailfor\Couchbase\CouchbaseServiceProvider::class,

and config/database.php

    'connections' => [
        ...
        'couchbase' => [ //the name of connection in your models(default)
            'driver' => 'couchbase',
            'username' => 'username',
            'password' => 'password',
        ],

Credits

License

The GNU License (GNU). Please see License File for more information.