title: Laravel - Additional column in relation many to many
body: <p>I have two tables - doctor and department and the relation between them doctor_has_department.</p>
  
  <p>I would like to add a boolean isBoss column, but I have no idea how I can change the value in it and refer to it in laravel.</p>
  
  <p>I would like to make a checkbox, if it is checked it will change the value to 1.</p>