// In model User.php, add withPivot; for ex :
public function customer(){
return $this->belongsToMany('role')
->withPivot('type'); // 'type' is from pivot table user_role
}
// then access the field with ->pivot; for ex:
$current_user->customer->pivot->type