Added firstOrFail to belongsToMany.