Skip to content

Workaround - Nova HasMany, HasManyThrough, MorphMany, etc #102

@ahinkle

Description

@ahinkle

Hi all,

As posted in their README:

Please note that this is experimental and is not actively maintained and supported by our team. If you are interested in helping to maintain/extend this project please reach out.

Background: we initially started this project in 2019 to add inline relationship functionality to Laravel Nova. In addition to running into some significant complexities that prevented us from efficiently moving forward, Laravel Nova has since added functionality that covers most, but not all, of what we were trying to accomplish here. We recommend using those core Laravel Nova features instead of this package at this point.

This project doesn't seem to be maintained. We are looking to add a simple inline hasMany():

Product -> has many related products

We would prefer this inline. however, this package seems abandoned and unsupported on Laravel Nova v3.

According to the Nova docs, the only supported inline relationships are BelongsTo() and MorphTo(). Has anyone found a good alternative to accomplish this?

We have a workaround in place now which is a bit hacky. A multi-select with the ID Value pair -- of course, it saves as JSON and we have to sort out the mess via model observers. It's a bit of a nightmare - hoping for a solution without having to dump Laravel Nova, entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions