Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebastiandedeyne/laravel-doctrine

Doctrine implementation in laravel 5
https://github.com/sebastiandedeyne/laravel-doctrine

Last synced: 14 days ago
JSON representation

Doctrine implementation in laravel 5

Awesome Lists containing this project

README

        

# 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

- [x] Entity Manager
- [x] Console commands
- [x] User provider
- [x] 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