-
Notifications
You must be signed in to change notification settings - Fork 74
Installation
Mitchell van Wijngaarden edited this page Aug 11, 2014
·
2 revisions
Begin by installing the package through Composer. Edit your project's composer.json
to require mitchellvanw/laravel-doctrine
.
This package is still in it's early stages, but fully functional. Is it possible that the API might change slightly, no drastic changes.
"require": {
"mitchellvanw/laravel-doctrine": "0.*"
}
Next use Composer to update your project from the the Terminal:
php composer.phar update
Once the package has been installed you'll need to add the service provider. Open your app/config/app.php
configuration file, and add a new item to the providers
array.
'Mitch\LaravelDoctrine\LaravelDoctrineServiceProvider'
After This you'll need to add the facade. Open your app/config/app.php
configuration file, and add a new item to the aliases
array.
'EntityManager' => 'Mitch\LaravelDoctrine\EntityManagerFacade'
It's recommended to publish the package configuration.
php artisan config:publish mitchellvanw/laravel-doctrine --path=vendor/mitchellvanw/laravel-doctrine/config