Skip to content

Weird Runway Relationship for Specific Models #514

Closed Answered by duncanmcclean
dmmceldowney asked this question in Help
Discussion options

You must be logged in to vote

I have a couple of ideas of things you could try....

  1. In terms of the relationship, the best practise is to use "camel case" for the relationship method names. So instead of service_provider, try using serviceProvider:

    public function serviceProvider(): BelongsTo
    {
        return $this->belongsTo(ServiceProviderDomain::class);
    }

    Also, you have the "belongs to" here pointing at the ServiceProviderDomain model, should it not be pointing at your ServiceProvider model?

  2. Regarding the reference to the related resource in your blueprint:

    resource: service_provider # changing to serviceprovider will load the page

    In Runway v6, resource handles (which is what you're using here) don't include unders…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dmmceldowney
Comment options

@dmmceldowney
Comment options

@duncanmcclean
Comment options

Answer selected by dmmceldowney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants