| Package Data | |
|---|---|
| Maintainer Username: | lequocnam |
| Maintainer Contact: | lequocnam2010@gmail.com (Nam Le) |
| Package Create Date: | 2016-07-28 |
| Package Last Update: | 2016-09-07 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-06 15:01:08 |
| Package Statistics | |
|---|---|
| Total Downloads: | 23 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 1 |
This is a OrientDB driver for Laravel 5.2
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,
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'
]
]
In your model:
<?php
namespace App;
use Lequocnam\Orient\Eloquent\Model;
use Lequocnam\Orient\Eloquent\SoftDeletes;
class Animal extends Model
{
use SoftDeletes;
...
}