nailfor / couchbase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:GNU Lesser General Public License v3.0


Languages

Language:PHP 100.0%