laracoft's avatar
Level 27

How to modify intermediary table value?

    public function board(): HasOneThrough
    {
        return $this->hasOneThrough(Board::class,
            IssueProject::class,
            'issue_id',
            'id',
            'id',
            'project_board_id'
        );
    }

I have the above relationship, how do I modify project_board_id the laravel way?

1 like
3 replies
vincent15000's avatar

@laracoft Oh sorry, I didn't see the first parameter Board::class because it is on the first line.

Please or to participate in this conversation.