Skip to content
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

[2.x] Accept any type of response in RedirectsActions trait #740

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

jaulz
Copy link
Contributor

@jaulz jaulz commented Mar 29, 2021

This PR allows users to use Inertia::location in redirect actions. Since that response is not directly a RedirectResponse (see https://inertiajs.com/redirects#external-redirects) it could not be used so far. Sometimes this kind of response is necessary to force a complete reload.

@jaulz jaulz changed the title fix: accept any type of response fix: accept any type of response in RedirectsActions trait Mar 29, 2021
@driesvints driesvints changed the title fix: accept any type of response in RedirectsActions trait [2.x] Accept any type of response in RedirectsActions trait Mar 29, 2021
@taylorotwell taylorotwell merged commit 4455e17 into laravel:2.x Mar 29, 2021
@jaulz jaulz deleted the patch-1 branch March 30, 2021 07:05
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