title: Laravel 5.7 resource route works for index and create but not edit, delete and show due to missing parameter which is visible in URL
body: <p>I made a resource for CRUD functionality in laravel 5.7. The index and create routes work okay but for update, show and delete it brings a <em>&quot;Missing required parameters for [Route: suffix.edit] [URI: suffix/{suffix}/edit].&quot;</em> or an error referencing to a missung parameter (id) but in the browser url, the id is displayed and all other CRUD resources  have built are working</p>
  <p>ROUTE:</p>
  <pre><code>Route::resource('suffix', SuffixController::class);
  </code></pre>
  <p>CONTROLLER:</p>
  <pre><code>    public function show(Sms_message_suffix $sms_message_suffix)
      {
          //
          return view('auth.smssuffix.show',compact('sms_message_suffix'));
      }
  
  
      public function edit(Sms_message_suffix $sms_message_suffix)
      {
          //
          return view('auth.smssuffix.edit',compact('sms_message_suffix'));
      }
  
  
      public function update(Request $request, Sms_message_suffix $sms_message_suffix)
      {
          //
          $request-&gt;validate([
              'content' =&gt; 'required',
          ]);
  
          $sms_message_suffix-&gt;update($request-&gt;all());
  
          return redirect()-&gt;route('suffix.index')-&gt;with('success','Suffix updated successfully');         
      }
  </code></pre>
  <p>HTML</p>
  <pre><code>            &lt;table class=&quot;table table-hover&quot; id=&quot;datatable&quot;&gt;
                  &lt;thead class=&quot;text-warning&quot;&gt;
                  &lt;th&gt;Content&lt;/th&gt;
                  &lt;td&gt;Actions&lt;/td&gt;                    
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                  &lt;tr&gt;
                  @foreach($sms_message_suffix as $s)
                  &lt;tr&gt;
                      &lt;td&gt;{{ \Str::limit($s-&gt;content, 50) }}&lt;/td&gt;
                      &lt;td&gt;                            
                          &lt;form action=&quot;{{ route('suffix.destroy', $s-&gt;id) }}&quot; method=&quot;POST&quot;&gt;
                              &lt;a class=&quot;btn btn-info&quot; href=&quot;{{ route('suffix.show', $s-&gt;id) }}&quot;&gt;
                                  Show
                              &lt;/a&gt;
                          
                              &lt;a class=&quot;btn btn-primary&quot; href=&quot;{{ route('suffix.edit', $s-&gt;id) }}&quot;&gt;
                                  Edit
                              &lt;/a&gt;                                  
                              @csrf
                              @method('DELETE')
                              &lt;button type=&quot;submit&quot; class=&quot;btn btn-danger&quot;&gt;Delete&lt;/button&gt;
                          &lt;/form&gt;                            
                      &lt;/td&gt;                                                                           
                  &lt;/tr&gt;
                  @endforeach
                  &lt;/tbody&gt;
              &lt;/table&gt;
  </code></pre>