Laravel – How to eager load "conditional" has-one relationship with the condition referencing to itself
Imagine I had 4 models as follows: Year Position PositionAllowance : This is a pivot table of Position and Year, with the addition of "allowance" i.e. it defines the amount of allowance for each position in a specified year. Employee…