larapack/doctrine-support
Laravel package that enhances Doctrine support in Laravel, including support for enum types. Install via Composer and (for Laravel 5.4 and below) register the DoctrineSupportServiceProvider. Use v0.1.3 for Laravel versions older than 5.4.
UserRole per tenant).tinyint or string columns) and don’t require Doctrine’s features.spatie/laravel-doctrine).For Executives: "This package lets us use PostgreSQL’s native enums in Laravel—cutting down on data validation errors and improving query speed. For example, if we’re storing user roles, native enums prevent invalid values at the database level, reducing bugs in production. It’s a lightweight way to modernize our schema without rewriting core logic. With support for Laravel 6.0, it’s now viable for legacy projects still on that version, making it a low-risk upgrade for teams already using Doctrine DBAL. Since it’s MIT-licensed, it’s a cost-effective solution for schema improvements."
For Engineering: *"If we’re using Doctrine DBAL (e.g., for migrations or multi-connection setups), this package adds first-class enum support for Eloquent models. Key benefits:
string/integer columns with native enums for stricter validation.User::where('role', User::ROLE_ADMIN)).How can I help you explore Laravel packages today?