Installation in Laravel 6+

Install this package with composer:

composer require laravel-doctrine/extensions

This package wraps extensions from Gedmo and Beberlei.

To include Gedmo extensions install them:


composer require "gedmo/doctrine-extensions=^3.0"

If you are using an annotation driver, then add the Gedmo (Behavioral) extensions service provider in config/app.php:

LaravelDoctrine\Extensions\GedmoExtensionsServiceProvider::class,

Also be sure to enable the extensions in the extensions section of config/doctrine.php.

To include Beberlei (Query/Type) extensions install them:


composer require "beberlei/DoctrineExtensions=^1.0"

And then add the Beberlei extensions service provider in config/app.php:

LaravelDoctrine\Extensions\BeberleiExtensionsServiceProvider::class,