title: Missing required parameters for Route (Laravel 8)
body: <p>I get this error when I create or edit a form, do you know if it comes from one of these views or from the Controller?</p>
  <blockquote>
  <p>Missing required parameter for [Route: forms.show] [URI: forms/{form}] [Missing parameter: form]</p>
  </blockquote>
  <p>Thankstrong texts for your help, this is my first post here.</p>
  <p>Code below :</p>
  <p>CONTROLLER
  FormsController:</p>
  <pre><code>public function create()
      {
          if (!Auth::check()) {
              return redirect('login');
          }
          return view('forms.create');
      }
  
  public function show($id)
      {
          return view('forms.consult', ['forms' =&gt; Forms::findOrFail($id)]);
      }
  
  public function update(StoreFormsRequest $request, Forms $forms)
      {
          if (!Auth::check()) {
              return redirect('login');
          }
          $request-&gt;validated();
          $forms-&gt;update($request-&gt;input());
          return redirect()-&gt;route('forms.show', ['forms' =&gt; $forms]);
      }
  
  public function edit($id)
      {
          if (!Auth::check()) {
              return redirect('login');
          }
          return view('forms.edit', ['forms' =&gt; Forms::findOrFail($id)]);
      }
  </code></pre>
  <p>VIEW
  create.blade.php:</p>
  <pre><code>&lt;form action=&quot;{{ url('forms') }}&quot; method=&quot;POST&quot;&gt;
    @csrf
  ...
  &lt;button class=&quot;btn btn-primary mb-1 mr-1&quot; type=&quot;submit&quot;&gt; Ajouter &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>edit.blade.php :</p>
  <pre><code>&lt;form action=&quot;{{ url('forms', [$forms-&gt;id]) }}&quot; method=&quot;POST&quot;&gt;
    @csrf
    @method('PUT')
  ...
  &lt;button class=&quot;btn btn-primary mb-1 mr-1&quot; type=&quot;submit&quot;&gt; Modifier &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>ROUTE</p>
  <pre><code>web.php :
  Route::get('/', [FormsController::class, 'index']);
  Route::resource('forms', FormsController::class);
  
  Auth::routes();
  
  Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])-&gt;name('home');
  Route::get('/home', [App\Http\Controllers\FormsController::class, 'index'])-&gt;name('home');
  </code></pre>