Skip to content

with Subtitles it is showing No additional information... ? #6275

@shubhamserverfront

Description

@shubhamserverfront
  • Laravel Version: 10.10
  • Nova Version: 4.0
  • PHP Version: 8.2.0
  • Database Driver & Version:
  • Operating System and Version: ubuntu
  • Browser type and version: chrome
  • Reproduction Repository: https://github.com/###/###

Description:

BelongsTo::make('Account')
->sortable()
->searchable()
->rules('required')
->required()
->showOnPreview()
->withSubtitles(function ($value) {
return $value->email;
}),

Detailed steps to reproduce the issue on a fresh Nova installation:

#this is my transaction resource

i have this code but when i try to get email in Subtitles it is showing "No additional information..."

And if i follow officals docs it say use

public function subtitle() { return "Author: {$this->user->name}"; } If i use this then subtitle is not coming

How to use subtitle and how to get email in subtitle?

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