Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pramanikriju@gmail.com's avatar

Missing route Parameter in Nova relationship

I keep getting missing required route parameter when I load a relationship using - HasOne::make('Profile Data','profile',ProfileData::class)->singularLabel('ProfileData'),

However, no errors are shown if this line is commented out. I'm unable to pinpoint the error as I'm only using the default fields, except to generate a button on the index view -

   Button::make('Visit Page')->link(route('profile',['user' => $this]))
                ->visible($this->published == true)
                ->style('primary')
                ->onlyOnIndex(),
              

This uses the dillingham/nova-button package

0 likes
0 replies

Please or to participate in this conversation.