https://medium.com/@yulistiyan.wardhana/solving-n-1-query-without-creating-memory-issue-in-laravel-d02d77c5fccc