Im using Laravel 5 and Im trying to get a value from my posted form. This works fine for normal form input names, like:
$request->input('stripeToken')
However if the input name is a array like name="order['amount']"
then I cant get the value. I've tried with:
$request->input( "order['return_url']" )
Anyone got any tips for this?
Use dot notation:
$value = $request->input('order.return_url');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With