к
Size: a a a
к
🎃
AI
V
V
AI
$boards = Board::with('users')
->where('author_id', $userId)
->wherePivot('user_id', $userId)
->first(['id', 'name', 'email'])
->get()
->toArray();
AH
AI
AI
->where('author_id', $userId)```
->wherePivot('user_id', $userId)
->first(['id', 'name', 'email'])
->get()
->toArray();
V
AI
Unknown column 'pivot' in 'where clause' (SQL: select * from `boards` where `author_id` = 1 and `pivot` = user_id)
🎃
->where('author_id', $userId)```
->wherePivot('user_id', $userId)
->first(['id', 'name', 'email'])
->get()
->toArray();
AI
🎃
🎃
🎃
🎃