Skip to content

Conversation

danielhe4rt
Copy link
Collaborator

This pull request introduces support for array-of-enum columns in database migrations, updates documentation to clarify usage, and expands compatibility with newer versions of Laravel. The key changes are grouped below by theme.

Feature Additions:

  • Added a new enumerations method to the Blueprint mixin, enabling the creation of columns that store arrays of enum values. (src/Mixins/BlueprintExtensions.php)
  • Added a corresponding typeEnumerations method to the GrammarExtensions mixin to handle the SQL type mapping for array-of-enum columns. (src/Mixins/GrammarExtensions.php)

Documentation Updates:

  • Updated the README.md to show new usage patterns for both single enum and array-of-enum columns, including examples for the new methods. (README.md)
    Compatibility Improvements:

  • Extended composer.json requirements to support Laravel v12 for both illuminate/database and illuminate/support. (composer.json)

@danielhe4rt danielhe4rt self-assigned this Sep 21, 2025
@danielhe4rt danielhe4rt added the enhancement New feature or request label Sep 21, 2025
@CodeLieutenant
Copy link
Collaborator

CodeLieutenant commented Sep 22, 2025

Great implementation, I didn't know that postgres even supported array of enums

Let's have some tests for this and I'll fix the pipeline, looks like it's broken now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants