Skip to content

RedirectResponse

Available methods:

hxLocation()

Sets the HX-Location header to redirect without reloading the whole page.

return redirect()->hxLocation('/path');

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();