title: How to solve Missing required parameter for [Route: classes.destroy][URI: classes/{class}] [Missing parameter: class] (did this with laravel)
body: <p>ClassController(destroy function)</p>
  <pre><code> public function destroy($id)
      {
          $classes = $this-&gt;classesRepository-&gt;find($id);
          if (empty($classes)) {
              return redirect(route('classes.index'));
          }
      }
  </code></pre>