Roll up relation provisioning into one class
martywallace opened this issue · 0 comments
martywallace commented
e.g.
protected function relations() {
return [
'thing' => Relation::single(Thing::class, 'thingId')
];
}
vs the current:
protected function relations() {
return [
'thing' => new SingleRelation(Thing::class, 'thingId')
];
}