DEV Community

techdurjoy
techdurjoy

Posted on

Best Practice to Use API Resource Collection in Laravel

This tutorial shows how to use Laravel API resources feature to build a REST API. API resources were introduced in Laravel 5.5. Before the introduction of API resources, we often used a package like fractal as a transformation layer to output JSON responses when building REST APIs. So, in this tutorial, I’ll be showing how to build a robust API in Laravel using API resources.

Best Practice to Use API Resource Collection in Laravel

Top comments (0)