Download the PHP package open-resource-manager/client-laravel without Composer
On this page you can find all versions of the php package open-resource-manager/client-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download open-resource-manager/client-laravel
More information about open-resource-manager/client-laravel
Files in open-resource-manager/client-laravel
Download open-resource-manager/client-laravel
More information about open-resource-manager/client-laravel
Files in open-resource-manager/client-laravel
Vendor open-resource-manager
Package client-laravel
Short Description ORM client library with enhancements for Laravel
License MIT
Package client-laravel
Short Description ORM client library with enhancements for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package client-laravel
ORM Client - Laravel
ORM client library with enhancements for Laravel
- ORM settings are read from
.env
. - ORM sessions are cached.
- Efficiently handles authentication.
Installation:
Add to composer.json
:
Add to config/app.php
:
Note, you only need to do this on Laravel < 5.5, since Laravel 5.5 has auto discover.
- Add to
providers
array underPackage Service Providers
:OpenResourceManager\Laravel\ORMServiceProvider::class
- Add to end of
aliases
array:'ORM' => OpenResourceManager\Laravel\Facade\ORM::class,
Publish config:
Edit Env (.env
)
Add the following to your .env
with values that pertain to you
Usage:
Using Helper Function:
Using Facade:
ORM Account Trait:
Ensure that your user model has an orm_id
attribute and it is set to the ORM ID of the account.
Available Trait Methods:
$user->account()
- Returns the entire ORM Account for that User.$user->emails()
- Returns the user's ORM Emails.$user->mobilePhones()
- Returns the user's ORM Mobile Phones.$user->addresses()
- Returns the user's ORM Addresses.$user->duties()
- Returns the user's ORM Duties.
Available Trait Attributes:
$user->account
- Returns the entire ORM Account for that User.
Setup and Examples
Sample Users Migration:
Sample User Model:
Example Usage:
All versions of client-laravel with dependencies
PHP Build Version
Package Version
Requires
open-resource-manager/client-php Version
~1.0
The package open-resource-manager/client-laravel contains the following files
Loading the files please wait ....