Skip to content

Date model attributes should be cast to date #335

@blackfyre

Description

@blackfyre
  • Laravel Version: 7
  • PHP Version: 7.4
  • Blueprint Version: 1.15
  • Platform: Mac | Windows | Linux

Issue:

When defining date attributes on the model, I would expect that those attributes are cast to date type in the generated model files.

draft.yaml:

  Subscription:
    active_from: date nullable
    active_to: date nullable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingThis issue is pending review

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions