title: Route not defined in Laravel 5.6
body: <p>I have defined a route in <strong>web.php</strong></p>
  
  <pre><code>Route::get('/dashboard/create-sub-project/{id}', 'SubProjectController@create')-&gt;name('sub-project.create')-&gt;middleware('auth');
  </code></pre>
  
  <p>and adding it a view.php</p>
  
  <pre><code>&lt;a href='{{ route('sub-project.create', $project-&gt;id) }}'&gt;Create new project&lt;/a&gt;
  </code></pre>
  
  <p>but it keeps on throwing an error</p>
  
  <blockquote>
    <p>Route [sub-project.create] not defined. (View:
    view.blade.php)</p>
  </blockquote>
  
  <p>Other routes I have defined works fine.</p>