Skip to content

Index entities custom inertia middleware#5048

Open
tom-brulin wants to merge 2 commits intoadonisjs:7.xfrom
tom-brulin:7.x
Open

Index entities custom inertia middleware#5048
tom-brulin wants to merge 2 commits intoadonisjs:7.xfrom
tom-brulin:7.x

Conversation

@tom-brulin
Copy link

🔗 Linked issue

https://github.com/orgs/adonisjs/discussions/5047

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

The problem is that, with the new entities index generator, when using shared props for Inertia, the Inertia middleware import path is a constant value that is not customizable. That means if you change the code architecture, it will break the autocompletion for Inertia shared props.

The goal, then, is to add a customizable import path for the Inertia middleware.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@tom-brulin tom-brulin changed the title 7.x Index entities custom inertia middleware Feb 16, 2026
Copy link
Member

@thetutlage thetutlage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a small change

@tom-brulin
Copy link
Author

Looks good. Just a small change

Oh yeah good catch, my bad

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

Comments