@mprythero
one thing you said is kinda weird:
"""
as an addition that a customer can be all three at once (as in origin, destination and biller).
"""
how is this possible? there is customer who bills himself? (if it's say interdepartmental, then I'd say we are missing something, like department)
also how can a customer be a biller?
Or we missing something? Perhaps a Customer is say 'Your' customer?
and they basically could be:
- a biller, or
- a destination, or
- a origin
Where you are tracking 'your Customer' on whether they are one, or 2 or all of these types?
That would change thing a bit, right?
@Snapey
a customer can be a biller, you'd need:
public function biller(Customer::class, 'biller_id')
{
$this->belongsTo(Customer::class, 'biller_id');
}
as a Customer is not just a customer, they could be any one of the 3 or a combination. According to @mprythero
That is if there is no generic customer, does that matter?