Skip to content

[Bug]: Ambiguity in the ancestorResource  #45

@mahemmati

Description

@mahemmati

What happened?

The plugin explore the wrong resource for the related create page route!

How to reproduce the bug

The plugin cant discover the exact ancestor resource in the apps where a model has more than one resource.
As there is similar issue with the nested resource which is resolved by defining the $nestedResource explicitly there should be a same approach for the $ancestorResource.
So we can define public static string $ancestorResource = Which/Resource/ArtistResource::class;

Package Version

latest

PHP Version

8.3

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions