title: Multiple approval process in Laravel
body: <p>I have a form which is submitted by a student and needs approval by different people based on the type of form. How can I achieve this in Laravel?
  Ex. Student 1 submits Form type 1 which requires approval of Instructor and advisor in that order. The advisor would get notification to approve only when instructor approves it.</p>
  
  <p>I have tried creating columns for each type of approver around(5) and check if the approver has approved and set the field. The issue with this approach is that the table has many columns. </p>
  
  <p>I created a table with approvers and the priority for the approver for the specific form and based on that send the notification. </p>
  
  <p>I know there should be a better way to achieve this.</p>
  
  <pre class="lang-php prettyprint-override"><code>$firstApprover = $form-&gt;approvallist-&gt;where('priority', '1')-&gt;first();
  </code></pre>
  
  <p>** Here approvallist is a relationship to a ApprovalList table which contains the list of people who approve this particular form type.</p>