Reload and redirect
The response tells the browser to reload the page or to go to another URL, right away or after a delay.
namespace App\Http\Controllers;
use App\Arch\BigPipe\AsyncResponse;
use Illuminate\Http\Request;
class UsersController extends Controller
{
public function onboarding(Request $request)
{
...
return (new AsyncResponse())
->redirect('/', 500)
->send();
}
}
The response tells the browser to reload the page or to go to another URL, right away or after a delay.