Skip to content

Assertions for Add/Attach/Detach Relations #6

@calvinps

Description

@calvinps

Is there a way to test if you can add/attach/detach relationships? Nova provides a way to authorize editing relationships on a resource: https://nova.laravel.com/docs/2.0/resources/authorization.html#relationships

If not, maybe this would make a good addition to the Policies assertions (e.g. assertCanAdd, assertCanAttach, assertCanDetach)?

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