PHPackages                             lequocnam/orient-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lequocnam/orient-laravel

ActiveLibrary

lequocnam/orient-laravel
========================

This is OrientDB driver for Laravel 5

423[1 issues](https://github.com/lequocnam/orient-laravel/issues)PHP

Since Sep 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lequocnam/orient-laravel)[ Packagist](https://packagist.org/packages/lequocnam/orient-laravel)[ RSS](/packages/lequocnam-orient-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

README
======

[](#readme)

This is a OrientDB driver for Laravel 5.2

### Requirements

[](#requirements)

- PHP &gt;= 5.5.9
- Laravel 5.2
- OrientDB 2.2 or above

### Installation

[](#installation)

Run `composer require lequocnam/orient-laravel` to install this package.

Then, add the service provider in `config/app.php`:

```

/*
 * Application Service Providers...
 */

...
Lequocnam\Orient\OrientServiceProvider::class,

```

### Database configuration

[](#database-configuration)

Open config/database.php make `orientdb` your default connection:

```

'default' => 'orientdb',
'default_nosql' => 'orientdb', //optional
...
'connections' => [
    'orientdb' => [
        'driver' => 'orientdb',
        'host'   => 'localhost',
        'port'   => '2424',
        'database' => 'database_name',
        'username' => 'root',
        'password' => 'root'
    ]
]

```

### How to use

[](#how-to-use)

In your model:

```
