Your join method needs one more param ('=' in most cases):
->join('role', 'movie_credits.role_id', '=', 'role.role_id')
Oh and by the way select doesn't work on belongsToMany, it will add table.* anyway.
Thanks a lot, Jarek! That was the solution!
I actually had to add select('roles.role'); in order for me to be able to use it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.