title: MethodNotAllowedHttpException When i'm using Post Method [gloudemans-package]
body: <p>recently I'm trying to create a shopping cart for my assignment project. I'm quite new to this framework, sorry if I asked something stupid :( It's a pleasure for me if you guys can check it for me. Tks</p>
  <p>I'm also trying to switch to GET method but still didn't work</p>
  <p><strong>The error were:</strong></p>
  <pre><code> MethodNotAllowedHttpException
  </code></pre>
  <p><strong>This is my controller</strong></p>
  <pre><code>public function cart() {
  
      if (Request::isMethod('post')) {
          $product_id = Request::get('product_id');
          $product = Product::find($product_id);
          Cart::add(array('id' =&gt; $product_id, 'name' =&gt; $product-&gt;name, 'qty' =&gt; 1, 'price' =&gt; $product-&gt;price));
      }
      if (Request::get('product_id') &amp;&amp; (Request::get('increment')) == 1) {
          $rowId = Cart::search(array('id' =&gt; Request::get('product_id')));
          $item = Cart::get($rowId[0]);
  
          Cart::update($rowId[0], $item-&gt;qty + 1);
      }
      if (Request::get('product_id') &amp;&amp; (Request::get('decrease')) == 1) {
          $rowId = Cart::search(array('id' =&gt; Request::get('product_id')));
          $item = Cart::get($rowId[0]);
  
          Cart::update($rowId[0], $item-&gt;qty - 1);
      }
  
      $cart = Cart::content();
  
      return view('cart', array('cart' =&gt; $cart, 'title' =&gt; 'Welcome', 'description' =&gt; '', 'page' =&gt; 'home'));}
  </code></pre>
  <p>This is my Route</p>
  <pre><code>Route::post('cart', 'HomepageController@cart')-&gt;name('cart');
  </code></pre>
  <p><strong>This is my view</strong></p>
  <pre><code>@extends('layout')
  @section('cart')       
  &lt;section id=&quot;cart_items&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
          &lt;div class=&quot;breadcrumbs&quot;&gt;
              &lt;ol class=&quot;breadcrumb&quot;&gt;
                  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
                  &lt;li class=&quot;active&quot;&gt;Shopping Cart&lt;/li&gt;
              &lt;/ol&gt;
          &lt;/div&gt;
          &lt;div class=&quot;table-responsive cart_info&quot;&gt;
              @if(count($cart))
              &lt;table class=&quot;table table-condensed&quot;&gt;
                  &lt;thead&gt;
                      &lt;tr class=&quot;cart_menu&quot;&gt;
                          &lt;td class=&quot;image&quot;&gt;Item&lt;/td&gt;
                          &lt;td class=&quot;description&quot;&gt;&lt;/td&gt;
                          &lt;td class=&quot;price&quot;&gt;Price&lt;/td&gt;
                          &lt;td class=&quot;quantity&quot;&gt;Quantity&lt;/td&gt;
                          &lt;td class=&quot;total&quot;&gt;Total&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                      @foreach($cart as $item)
                      &lt;tr&gt;
                          &lt;td class=&quot;cart_product&quot;&gt;
                              &lt;a href=&quot;&quot;&gt;&lt;img src=&quot;images/cart/one.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;
                          &lt;/td&gt;
                          &lt;td class=&quot;cart_description&quot;&gt;
                              &lt;h4&gt;&lt;a href=&quot;&quot;&gt;{{$item-&gt;name}}&lt;/a&gt;&lt;/h4&gt;
                              &lt;p&gt;Web ID: {{$item-&gt;id}}&lt;/p&gt;
                          &lt;/td&gt;
                          &lt;td class=&quot;cart_price&quot;&gt;
                              &lt;p&gt;${{$item-&gt;price}}&lt;/p&gt;
                          &lt;/td&gt;
                          &lt;td class=&quot;cart_quantity&quot;&gt;
                              &lt;div class=&quot;cart_quantity_button&quot;&gt;
                                  &lt;a class=&quot;cart_quantity_up&quot; href=&quot;&quot;&gt; + &lt;/a&gt;
                                  &lt;input class=&quot;cart_quantity_input&quot; type=&quot;text&quot; name=&quot;quantity&quot; value=&quot;{{$item-&gt;qty}}&quot; autocomplete=&quot;off&quot; size=&quot;2&quot;&gt;
                                  &lt;a class=&quot;cart_quantity_up&quot; href='{{url(&quot;cart?product_id=$item-&gt;id&amp;increment=1&quot;)}}'&gt; + &lt;/a&gt;
                                  &lt;a class=&quot;cart_quantity_down&quot; href='{{url(&quot;cart?product_id=$item-&gt;id&amp;decrease=1&quot;)}}'&gt; - &lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td class=&quot;cart_total&quot;&gt;
                              &lt;p class=&quot;cart_total_price&quot;&gt;${{$item-&gt;subtotal}}&lt;/p&gt;
                          &lt;/td&gt;
                          &lt;td class=&quot;cart_delete&quot;&gt;
                              &lt;a class=&quot;cart_quantity_delete&quot; href=&quot;&quot;&gt;&lt;i class=&quot;fa fa-times&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      @endforeach
                      @else
                  &lt;p&gt;You have no items in the shopping cart&lt;/p&gt;
                  @endif
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/section&gt; &lt;!--/#cart_items--&gt;
  @endsection
  </code></pre>