vendredi 7 août 2020

Laravel 7 redirect away shows redirect url on white page

I am redirecting away from Laravel 7 controller and it shows the redirection url just before it redirects to the url. I am using the following code:

private function createPayment($session_token)
{
    ...

    try {
        $response = Http::timeout(30)->withHeaders($headers)->post($url, $body)->json();

        if ($response['statusCode'] != '0000') {
            $this->redirectError($response['statusCode'], $session_token);
        }

        $url= $response['bkashURL'];

        redirect()->away($url)->send();
    } catch (\Throwable $th) {
        $this->redirectError($response['statusCode'], $session_token);
    }
}

I getting this :

enter image description here

how can I prevent the page not to show the url.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/31tasGa
via IFTTT

Aucun commentaire:

Enregistrer un commentaire