Skip to content

sebastiandedeyne/laravel-doctrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Doctrine

Doctrine implementation in laravel 5. Work in progress.

Installation

composer require sebdd/laravel-doctrine

Usage

All you need to do is register the service provider in config/app.php

'providers' => [
    // ...
    'Sebdd\LaravelDoctrine\DoctrineServiceProvider',
];

You can also optionally publish the configuration

php artisan vendor:publish --provider="Sebdd\LaravelDoctrine\DoctrineServiceProvider"

If you're using the user provider, you'll also need to make sure auth.driver is set to "doctrine" and auth.model is correct.

Features

  • Entity Manager
  • Console commands
  • User provider
  • Basic configuration
  • Test coverage

Configuration

user_provider

enabled bool (true) Registers a doctrine user provider

columns.identifier string ('id') The user identifier column

columns.remember_token string ('remember_token') The user remember_token column