Skip to content

[Bug]: How to use relationships? (ask question/feature leads to 404 page, thus this is marked as a bug) #4

@synsyst

Description

@synsyst

What happened?

When our names and titles only exists through relationships, ie. projects.name and status.title, how should I set that up? Simply using the dot-notation doesn't seem to work.

    public function mount(): void
    {
        $this
            ->titleField('title');
            ->columnField('status')
            ->columns([
                'todo' => 'To Do',
                'in_progress' => 'In Progress',
                'completed' => 'Completed',
            ])
    }

Thank you

How to reproduce the bug

N/A

Package Version

0.1.7

PHP Version

8.3

Laravel Version

9

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