Skip to content

Add Hydrated Models Count to Models Table on the Request Details Page #1576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

niteen1593
Copy link
Contributor

@niteen1593 niteen1593 commented Mar 17, 2025

This PR enhances the Models table on the request details page by adding a Hydrated column. This column helps track the number of times a model instance was hydrated from the database.

Changes:
• Added a Hydrated column to the Models table.
• Displays the count of hydrated model instances for better debugging and performance analysis.
• Ensures existing retrieved and created actions remain intact.

Before: No hydrated count available.

image

After: Hydrated column added, showing counts for retrieved models.

image

Why?
• Provides better insight into model hydration.
• Helps debug and optimize Eloquent queries by identifying excessive hydration.
• No need to navigate to Model Action page to get hydration count for particular model

@taylorotwell taylorotwell merged commit bb11d79 into laravel:5.x Mar 17, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants