Level 63
First it seems that your relationship isn't defined correctly.
https://laravel.com/docs/11.x/eloquent-relationships#has-one-through-key-conventions
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?
Please or to participate in this conversation.