This repository is the source code to my YouTube lesson, watch it here: https://youtu.be/__DyyzHgYGg
View this lesson on my Medium Blog: https://medium.com/@sam_ngu/avoiding-infinite-nested-relationship-loop-in-laravel-api-resource-35685898b360
I've included the seeder files for you to quickly test the code.
Just run:
composer install
php artisan migrate && php artisan db:seed
Follow me on YouTube for more content! https://www.youtube.com/channel/UCU5RsUGkVcPM9QvFHyKm1OQ
Contribution is much appreciated and will be fully accredited.
If you discover a security vulnerability, please send an e-mail to us via opensource@acadea.io. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.