Henestrosa.dev
  • Home
  • Blog
ESEspañol

Blog

PostsCategoriesTags

Category · Back-end Development

  • How to use whenLoaded in Laravel API ResourcesMar 29, 2024

    How to use whenLoaded in Laravel API Resources

    An Eloquent API resource in Laravel is a class that allows you to transform your Eloquent models and model collections into a JSON format suitable for API responses. It provides a convenient way to shape the output of your model data, making it easier to control what data is exposed and how it's structured in your API responses.

    ↗

© 2026 José Carlos López Henestrosa

No tracking or ads.