title: How do I send data via post where it call route through controller laravel?
body: <p>My case like this :</p>
  
  <p>I have add method. If the method run, it will call route</p>
  
  <p>The code like this :</p>
  
  <pre><code>public function add(Request $request)
  {
      ...
      return redirect('shop/payment/checkout/'.json_encode($data['cart']).'/'.$id);
  }
  </code></pre>
  
  <p>My route like this : </p>
  
  <pre><code>Route::group(['prefix' =&gt; 'shop','as'=&gt;'shop.'], function () {
      Route::get('payment/checkout/{cart}/{id}', ['as'=&gt;'payment.checkout','uses'=&gt;'ShopController@checkout']);
  });
  </code></pre>
  
  <p>It will call checkout method in the shop controller</p>
  
  <p>The method like this :</p>
  
  <pre><code>public function checkout($cart=null, $id=null)
  {
      dd($cart, $id)
  }
  </code></pre>
  
  <p>It works</p>
  
  <p>If the code execute, it will display the result of <code>$cart</code> and <code>$id</code></p>
  
  <p>But it use <code>get</code></p>
  
  <p>I want to change it use <code>post</code></p>
  
  <p>Because if use <code>get</code> the data cart look in the url</p>
  
  <p>How can I solve this problem?</p>
  
  <p>So the data not visible in the url</p>
  
  <p>Seems this case must use <code>post</code></p>
  
  <p>But I'm still confused use <code>post</code> in this case</p>