title: no record inserted in the database in laravel
body: <p>I have tried many times to insert a product which belongs to a category without change in the database
    <strong>this is controller</strong></p>
  
  <pre><code>class ProduitController extends Controller
  {
       public function store(Request $request)
       {
          $pdt=new Produit(); 
          $pdt-&gt;nom=$request-&gt;input('nomPdt');
          $pdt-&gt;libelle=$request-&gt;input('libelle');
          $pdt-&gt;qte_stock=$request-&gt;input('qte');
          $pdt-&gt;pu=$request-&gt;input('pu');
          $pdt-&gt;categorie_id=$request-&gt;input('categorie');
          $pdt-&gt;etat=1;
  
         $pdt-&gt;save();
       }}
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;form action="{{url('produit/'.$pdt-&gt;id)}}" method="post"&gt;
  &lt;label for="nom"&gt;nom:&lt;/label&gt;&lt;br&gt;
  &lt;input type="text" id="" name="nom" value=""&gt;&lt;br&gt;
  
  &lt;label for="libelle"&gt;libellé:&lt;/label&gt;&lt;br&gt;
  &lt;input type="text" id="" name="libelle" value=""&gt;&lt;br&gt;
  
  &lt;label for="qte"&gt;Qte en stock:&lt;/label&gt;&lt;br&gt;
  &lt;input type="number" id="" name="qte" value="" min="0"&gt;&lt;br&gt;
  
  &lt;label for="pu"&gt;PU:&lt;/label&gt;&lt;br&gt;
  &lt;input type="number" id="" name="pu" value="" min="0"&gt;&lt;br&gt;
  
  &lt;label for="etat"&gt;Etat:&lt;/label&gt;
  &lt;input type="checkbox" id="" name="etat" &gt;&lt;br&gt;
  
  &lt;label for="selectCategorie"&gt;Categorie:&lt;/label&gt;
  &lt;select id="" name="selectCategorie"&gt;
      &lt;option value="selectionnez"&gt;selectionnez&lt;/option&gt;
      @foreach ($categories as $cat)
      &lt;option value="{{ $cat-&gt;id }}"&gt; {{ $cat-&gt;nom }} &lt;/option&gt;
      @endforeach
  &lt;/select&gt;
  </code></pre>
  
  <p><br>
      
    
  for the product table associated with the category table
  <a href="https://i.stack.imgur.com/edDHj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/edDHj.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/KBOo0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KBOo0.png" alt="enter image description here"></a></p>