title: Laravel : throw new MethodNotAllowedHttpException($others);
body: <p>After much research on this forum, but elsewhere on the Internet, "Cat got your tongue".</p>
  
  <p>Many messages speak about this subject, but I can not correct my mistake on my side.</p>
  
  <p>I use the same form to add or modify my data.</p>
  
  <p>I have an error with my form only when I want to modify my data.</p>
  
  <p>Wep.app :</p>
  
  <pre><code>// Gérer les personnes (sociétés, personnes...) photographiées
  Route::get('tiers', 'tiersController@afficheliste'); // Fait
  Route::get('tiersajouter', 'tiersController@ajouter'); // Fait
  Route::post('tiersmodifier', 'tiersController@modifier'); // Fait
  Route::post('tiersupdatesql', 'tiersController@updatesql'); // Fait
  Route::post('tierssupprimer', 'tiersController@supprimer'); // Fait
  Route::post('tiersreactiver', 'tiersController@reactiver'); // Fait
  </code></pre>
  
  <p>ctrltiersRequest :</p>
  
  <pre><code>&lt;?php
  namespace App\Http\Requests;
  use Illuminate\Foundation\Http\FormRequest;
  
  class ctrltiersRequest extends FormRequest {
      /**
       * Determine if the user is authorized to make this request.
       *
       * @return bool
       */
      public function authorize() {
          return true;
      }
  
      /**
       * Get the validation rules that apply to the request.
       *
       * @return array
       */
       public function rules() {
            return [
                 'tiersNom'      =&gt; 'required|min:5',
                 'ville'         =&gt; 'required',
                 'tiersiptc1'    =&gt; 'required',
                 'tiersiptc2'    =&gt; 'required'
            ];
       }
       public function messages() {
            return [
                 'tiersNom.required'       =&gt; "Le nom est obligatoire",
                 'tiersNom.min'            =&gt; "Le nom doit faire au minimum 5 caractères",
                 'ville.required'          =&gt; "La ville est obligatoire",
                 'tiersiptc1.required'     =&gt; "Le thème principal est obligatoire",
                 'tiersiptc2.required'     =&gt; "Le sous-thème est obligatoire"
            ];
      }
  }?&gt;
  </code></pre>
  
  <p>tiersModif.blade :</p>
  
  <pre><code>I can not paste the contents of my blade file into this message. I add it in a reply to this message. I am sorry...
  </code></pre>
  
  <p>tiersControllers :</p>
  
  <pre><code> public function updatesql(ctrltiersRequest $request) {
      //public function updatesql(tiersRequest $request) {
           //['tiers_id' =&gt; (int)$request-&gt;tiersModif],
          $tiers = tiers::updateOrCreate(
              ['tiers_id' =&gt; $request-&gt;tiersModif],
              ['tiers_nom'                =&gt; $request-&gt;tiersNom,
               'tiers_prenom'             =&gt; $request-&gt;tiersPrenom,
               'tiers_societeproduction'  =&gt; $request-&gt;production,
               'tiers_ville'              =&gt; $request-&gt;ville,
               'tiers_iptc1'              =&gt; $request-&gt;tiersiptc1,
               'tiers_iptc2'              =&gt; $request-&gt;tiersiptc2,
               'tiers_iptc3'              =&gt; $request-&gt;tiersiptc3]);
          // Afficher
          return Redirect('tiers');
  </code></pre>