Number of items desired:
Number currently purchased:
A JOIN With Additional Conditions Using Query Builder or Eloquent
From: stackoverflow.com
Added: 2019-03-29 by another contributor
This is a good example of setting up a complex join in Laravel.