title: Laravel 404 not found when passing parameter with route()
body: <p>Hello I have instructors table, and every instructor have name column and I have a page to show events and every event has instructor name and I need to go to the instructor profile page when clicking on the instructor name in the events page so I made this</p>
  <pre><code>&lt;a href=&quot;{{ route('instructor.profile', ['name' =&gt; $event-&gt;instructor]) }}&quot; class=&quot;a-reset&quot;&gt;
      &lt;h5 class=&quot;color-primary fw-bold&quot;&gt;{{ $event-&gt;instructor }}&lt;/h5&gt;
  &lt;/a&gt;
  </code></pre>
  <p>web.php</p>
  <pre><code>Route::get('/instructor/{name}', 'App\Http\Controllers\InstructorController@profile')-&gt;name('instructor.profile');
  </code></pre>
  <p>InstructorController</p>
  <pre><code>public function profile($name) {
      $instructor = Instructor::where('name', '=', $name)-&gt;first();
  
      return view('instructor-profile', compact('instructor'));
  }
  </code></pre>
  <p>But it gives me 404 Not Found error page</p>