Skip to content

Model Casts not working #103

@Jacobtims

Description

@Jacobtims

Laravel model casts are not working when using ->diff().

Example code:

$diff = $post->getVersion(1)->diff($post->getVersion(2));

$diff->toArray();

Both the old and new values don't respect model casts and show the raw value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions