Skip to content

Add fields between relations not longer working #4222

@StanBarrows

Description

@StanBarrows
  • Laravel Version: 9.12.*
  • Nova Version: 4.5.*
  • PHP Version: 8.1.

Description:

Relations are forced to be displayed at the bottom of each resource.
There is no more possibility of adding headings or any other field between relations. We used this in Nova 3.0 to give some users a little more context of specific relations by applying a descriptive heading.


public function fields(NovaRequest $request)
    {
        return [
    
         (new Panel('Label Panel', $this->labels())),

           $this->timestampsPanel(),

        ];
    }

   protected function labels()
    {
        return [
            Heading::make('Label Description )'),
            HasMany::make('Labels', 'labels', Label::class),

        ];
    }

CleanShot 2022-05-12 at 08 18 27@2x

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