title: Laravel 5.7 route with name not working but simple routing is working
body: <p>Laravel 5.7 route with name not working but simple routing is working, i tried and found lot of answers but nothing is working for me , please help me on this</p>
  
  <p>i tried this </p>
  
  <pre><code>Route::get('jobs/jobs-search', 'JobsController@job_listing')-&gt;name('jobssearch');
  </code></pre>
  
  <p>also tried this</p>
  
  <pre><code>Route::get('jobs/jobs-search', array('as' =&gt; 'jobssearch', 'uses' =&gt; 'JobsController@job_listing'));
  
  Working with url: {{ url('jobs/jobs-search') }} //http://localhost/mzd/jobs/jobs-search
  Not working accessing name rout {{ route('jobssearch') }} this show 404 page not found //http://localhost/mzd/jobssearch
  </code></pre>
  
  <p>i am using xampp 7.2.10 with laravel 5.7
  this is my .htaccess</p>
  
  <p>
      
          Options -MultiViews -Indexes
      </p>
  
  <pre><code>RewriteEngine On
  
  # Handle Authorization Header
  RewriteCond %{HTTP:Authorization} .
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  
  # Redirect Trailing Slashes If Not A Folder...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} (.+)/$
  RewriteRule ^ %1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  # Disable index view
   Options -Indexes
  
  # Hide a specific file
  &lt;Files .env&gt;
     Order allow,deny
     Deny from all
  &lt;/Files&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yhoFg.png" rel="nofollow noreferrer">Image of my routes please check</a></p>