I'm new to Laravel and am stuck with an issue for a few days. I did this with my PHP code...

```
<a class="btn_full" href="/place-order.php?placeorder=true&distance=<?php echo $distance_km; ?>">Place Order</a>

```

I want to use an HREF in a Laravel controller to do the same thing...

**Update 2**

```
<?php

public function custom_pay(Request $request)
{
    try {
        Stripe::setApiKey(Setting::get('stripe_secret_key'));
        $token = $_POST['stripeToken'];

        $customer = \Stripe\Customer::create([
            'source' => $token,
            'email' => Auth::user()->email,
        ]);
        request('distance');

        return redirect('/place-order.php?placeorder=true&distance=' . $distance);
    } catch (\Exception $e) {
        return $e->getMessage();
    }
}

```

However, it's not sending the `$distance_km` value with the URL. How can I do it? Thanks in advance.

**Update 3**

I added this part as suggested...

```
$distance= request('distance');

return redirect('/place-order.php?placeorder=true&distance=' . $distance);

```

Inside the blade file, I added this: 

```
<input name="distance" value="{{ $distance_km }}" type="hidden" />

```

It still doesn't work. It's generating this URL: "mysitename.com/createorder?placed=true" and doing everything else other than saving the distance value. In the database, the value is empty which was supposed to be passed via URL.