vortgo/dbal-laravel-enum

DBAL package for laravel migrations. Added field type - enum
633 1
Install
composer require vortgo/dbal-laravel-enum
Latest Version:v2.5.6
PHP:^5.6 || ^7.0
License:MIT
Last Updated:Oct 21, 2016
Links: GitHub  ·  Packagist
Maintainer: vortgo

Doctrine DBAL for laravel migrations

Changed files from original package

dbal/lib/Doctrine/DBAL/Schema/Column.php

dbal/lib/Doctrine/DBAL/Types/EnumType.php

Usage

When you need changing field enum, just added in your migrations file

Doctrine\DBAL\Types\Type::addType('enum', 'Doctrine\DBAL\Types\EnumType');

Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');

Related Packages

larapack/doctrine-support

Better Doctrine Support with Laravel (Support for `enum`)

2,383,730 175
marktopper/doctrine-dbal-timestamp-type

Add the timestamp type for Doctrine/DBAL

842,936 49
mohsentm/laravel-db-enum

laravel-db-enum is a trait for laravel models. use this trait on modules for get...

3,140 1