Issue
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?
Solution
Use dot notation:
$value = $request->input('order.return_url');
Answered By - Joseph Silber
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.