Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Joins wenn möglich mit Model-Beziehungen ersetzen #144

Open
andyundso opened this issue Jan 4, 2019 · 0 comments
Open

Joins wenn möglich mit Model-Beziehungen ersetzen #144

andyundso opened this issue Jan 4, 2019 · 0 comments

Comments

@andyundso
Copy link
Member

Moment gibt es viele Orte, wo Joins verwendet werden, anstatt die Laravel-Beziehungen zu nutzen.

z.B. https://github.com/stiftungswo/izivi/blob/master/api/app/Http/Controllers/api/PaymentController.php#L197 PaymentEntry könnt einfach mit Users und ReportSheets verknüpft werden, dann könnte man einfach PaymentEntry::with('user', 'report_sheet') aufrufen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant