My User model has many Target and vice versa. Now I\'ve got a given User and given Target and I want to access pivot data
User
Target
You can also limit columns by passing array as 2nd arg to simplePaginate
$query->users()->simplePaginate($per_page, ['users.id', 'users.email']);