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 :
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