2017 © Pedro Peláez
 

library orientdb

Laravel Orientdb Driver

image

sgpatil/orientdb

Laravel Orientdb Driver

  • Tuesday, March 8, 2016
  • by sumit_2803
  • Repository
  • 4 Watchers
  • 10 Stars
  • 111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Orientdb Driver for Laravel 4 [Deprecated]

Orientdb Graph Eloquent Driver for Laravel 4, (*1)

Looking for Orientdb Driver for Laravel 5, (*2)

Quick Reference

Installation

Add the package to your composer.json and run composer update., (*3)

{
    "require": {
        "sgpatil/orientdb": "@dev"
    }
}

Add the service provider in app/config/app.php:, (*4)

'Sgpatil\Orientdb\OrientdbServiceProvider',

This will register all the required classes for this package., (*5)

Database Configuration

Open app/config/database.php make orientdb your default connection:, (*6)

'default' => 'orientdb',

Add the connection defaults:, (*7)

'connections' => [
    'orientdb' => [
        'driver' => 'orientdb',
        'host'   => 'localhost',
        'port'   => '2480',
        'database' => 'database_name',
        'username' => 'root',
        'password' => 'root'
    ]
]

Add your database username and password in 'username' and 'password' field. In 'database_name' add name of orientdb database which you want to connect and use., (*8)

Migration

To create a migration, you may use the orient command on the Artisan CLI:, (*9)

php artisan orient:make create_users_table

The migration will be placed in your database/migrations folder, and will contain a timestamp which allows the framework to determine the order of the migrations., (*10)

The --table and --create options may also be used to indicate the name of the table, and whether the migration will be creating a new table:, (*11)

php artisan orient:make add_votes_to_users_table --table=users_votes

php artisan orient:make create_users_table --create=users

To run migration, (*12)

php artisan orient

How to Use

class User extends Orientdb {

    protected $fillable = ['name', 'email'];
}

$user = User::create(['name' => 'Some Name', 'email' => 'some@email.com']);

You can use this by extending Orientdb into model class., (*13)

The Versions

08/03 2016

dev-master

9999999-dev

Laravel Orientdb Driver

  Sources   Download

MIT

The Requires

 

by Sumit Patil

09/06 2015

2.0.x-dev

2.0.9999999.9999999-dev

Laravel Orientdb Driver

  Sources   Download

MIT

The Requires

 

by Sumit Patil

15/04 2015

v0.0.2

0.0.2.0

Laravel Orientdb Driver

  Sources   Download

MIT

The Requires

 

by Sumit Patil

10/02 2015

v0.0.1

0.0.1.0

Laravel Orientdb Driver

  Sources   Download

MIT

The Requires

 

by Sumit Patil

01/11 2014

dev-dev

dev-dev

Laravel Orientdb Driver

  Sources   Download

MIT

The Requires

 

by Sumit Patil