title: problem in delete from pivot table in laravel
body: <p>i have a problem in delete an order:</p>
  <p>here the form where press on cancel to delete the order:</p>
  <pre><code>&lt;form action=&quot;{{route('user.orders.delete', $order-&gt;id)}}&quot; method=&quot;POST&quot;
                                    onsubmit=&quot;return confirm('Are you sure?');&quot;&gt;
                                  @method('DELETE')
                                  @csrf
                                  &lt;button
                                      type=&quot;submit&quot; class=&quot;mt-8 mb-4 py-2 px-14 rounded-full
                                      bg-red-900 text-white tracking-widest hover:bg-blue-800
                                      transition duration-200&quot;&gt;
                                      Cancel
                                  &lt;/button&gt;
                              &lt;/form&gt;
  </code></pre>
  <p>this is my router:</p>
  <pre><code> Route::delete('user/orders/delete/{order}', [OrderController::class, 'delete'])-&gt;name('user.orders.delete');
  </code></pre>
  <ul>
  <li><p>OrderController : delete function:</p>
  <p>public function delete(Order $order)
  {
  try {
  unlink(public_path().'/storage/orders/files/'.$order-&gt;file);
  $order-&gt;delete();
  }catch(\Exception $e) {
  return redirect()-&gt;back()-with('status', 'you cannot delete this item');</p>
  <pre><code>      }
        return redirect()-&gt;back()-&gt;with('status', 'product deleted succefully');
    }
  </code></pre>
  </li>
  </ul>
  <p>so when click on the button (cancel) just go to the right url : when 21 is the order id</p>
  <pre><code>http://127.0.0.1:8000/user/orders/delete/21
  </code></pre>
  <p>and it is just not found page!!! and nothing deleted!!!</p>