RedirectResponse
Available methods:
hxLocation()
Sets the HX-Location
header to redirect without reloading the whole page.
return redirect()->hxLocation('/path');
For convenience, the set path with http(s)://
will be converted to relative. Like this: http://example.com/articles/
it will become /articles/
.
For more information, please see hx-location.
hxRedirect()
Can be used to do a client-side redirect to a new location.
return redirect()->hxRedirect('/path');
hxRefresh()
If called the client side will do a full refresh of the page.
return redirect()->hxRefresh();