Preserve pagination in NovaRequest #5975
Unanswered
khalyomede
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case: I am redirecting my users to the original resource after a BelongsToMany record has been edited.
In practice I have companies, these companies can have many parameters.
In the company resource I have a "Parameters" tab, where I display the parameters.
By default after editing a parameter, it redirects to the parameter resource, and I want to keep my users on the Company resource parameter tab instead.
The thing that blocks me is that when there is a dozen pages, and the user edit a parameter in page eight, I have no information to know which page the user was and the user gets redirected to the first page.
This is how I redirect my users currently, if I had the page number I could add it on the redirect URL
Is it possible to save the current page in the
NovaRequest?Side note
If I may suggest, something more "developer friendly" to redirect to a resource, like we have in plain Laravel, I was thinking of something like this:
Beta Was this translation helpful? Give feedback.
All reactions