If you return Eloquent models or collections directly from your API Controller or even Route file, Laravel will automatically serialize the result to JSON.
If you return Eloquent models or collections directly from your API Controller or even Route file, Laravel will automatically serialize the result to JSON.