next: paginated Eloquent response type narrowing - #249
Open
levikl wants to merge 4 commits into
Open
Conversation
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
2 times, most recently
from
May 8, 2026 06:01
3092cfc to
29a5e2c
Compare
This was referenced May 8, 2026
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
from
May 8, 2026 06:22
29a5e2c to
2454450
Compare
This was referenced May 8, 2026
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
from
May 8, 2026 22:59
b6dee3a to
d02e4cb
Compare
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
4 times, most recently
from
May 12, 2026 23:41
67a0208 to
540540b
Compare
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
3 times, most recently
from
May 13, 2026 21:51
6391652 to
1b0723e
Compare
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
3 times, most recently
from
May 13, 2026 22:06
c359185 to
d78c555
Compare
levikl
force-pushed
the
paginated-eloquent-response-type-narrowing
branch
from
May 13, 2026 22:07
d78c555 to
bf205f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
when a controller returns
Product::paginate(5)as an Inertia response prop to the frontend, wayfinder previously had no way to carry the model type through the paginator, so the typegen emitteddata: Record<string, unknown>instead ofdata: App.Models.Product[]. once three upstream PRs (laravel/framework#60045 + laravel/surveyor#39 + laravel/ranger#34) are merged, the full pipeline works automatically.this change adds end-to-end test coverage confirming it.
related
Builderpaginate methods framework#60045@templatebindings inArrayableshapes andBuildermethod return types surveyor#39ClassResulttoClassLikeResultranger#34merge order
laravel/framework->laravel/surveyor->laravel/ranger->this