Download the PHP package sgpatil/orientdb-laravel-5 without Composer
On this page you can find all versions of the php package sgpatil/orientdb-laravel-5. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package orientdb-laravel-5
Orientdb Driver for Laravel 5
Oriquent is Orientdb Eloquent Driver for Laravel 5
Version Naming
The version tagging convention which we are following is vX.Y.x.y where
X => Laravel Major Release
Y => Laravel Minor Release
x => Oriquent Major Release
y => Oriquent Minor Release
So to install oriquent on Laravel 5.4 you will need to install v5.4.*.*
and to install oriquent on Laravel 5.3 you will need to install v5.3.*.*
Note : Branch
dev-master
will always point to latest release. Currently pointing to Laravel 5.4
You can check complete installation guide in Installation Section.
Quick Reference
- Requirements
- Installation
- Configuration
- Migration
- Relationships
Requirements
- Laravel 5.2
- Orientdb Server 2.1 or above
Installation
STEP 1 :
Add the package to your composer.json
and run composer update
.
OR
Run below command in terminal
STEP 2 :
Add the service provider in config/app.php
:
This will register all the required classes for this package.
Database Configuration
Open config/database.php
make orientdb
your default connection:
And optionally, if you want to use orientdb as a secondary connection
Add the connection defaults:
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.
Migration
To create a migration, you may use the orient command on the Artisan CLI:
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.
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:
To run migration
How to Use
You can use this by extending Orientdb into model class.
To fetch all records
To find a record
To update a record
Relationships
To create one-to-one relationship
Unable to find has_phone() method ? See full example.
Want to learn more? See the wiki.