Skip to content

Install

rm edited this page Apr 17, 2016 · 1 revision

You can install the package via composer require command:

composer require devio/eavquent

Or simply add it to your composer.json dependences and run composer update:

"require": {
    "devio/eavquent": "dev-master"
}

Laravel set up

If you are using Laravel just include the EavquentServiceProvider to the providers array in config/app.php. It will bootstrap the package for us:

'providers' => [
    ...
    Devio\Eavquent\EavquentServiceProvider::class
    ...
]

Once the Service Provider is loaded, we just have to publish the package assets:

php artisan vendor:publish --provider="Devio\Eavquent\EavquentServiceProvider"

And then just run the database migrations:

php artisan migrate

Framework agnostic set up

In case you are using Eloquent out of a Laravel/Lumen application, we need a little bit more of set up...

TODO...