title: Laravel route() not working properly
body: <p>I am creating a cms type of application which just registers users and where user can create posts. The problem is in <code>route()</code>. When defining <code>route()</code> in hyperlink in blade html it is not working.</p>
  
  <p>Route:</p>
  
  <pre><code>Route::resource('/admin/users', 'AdminUsersController');
  </code></pre>
  
  <p>HTML Blade:</p>
  
  <pre><code>        &lt;ul class="nav nav-second-level"&gt;
              &lt;li&gt;
                  &lt;a href="{{route('admin.users.index')}}"&gt;All Users&lt;/a&gt;
              &lt;/li&gt;
  
              &lt;li&gt;
                  &lt;a href="{{route('admin.users.create')}}"&gt;Create User&lt;/a&gt;
              &lt;/li&gt;
  
          &lt;/ul&gt;
  </code></pre>
  
  <p>Folder architecture:</p>
  
  <p>resources/views/admin/users/create.blade.php
  resources/views/admin/users/index.blade.php</p>
  
  <p>Its not working. It says <code>Route [admin.users.index] not defined. (View: C:\wamp64\www\codehacking\resources\views\layouts\admin.blade.php) (View: C:\wamp64\www\codehacking\resources\views\layouts\admin.blade.php)</code>.</p>
  
  <p>Please help me fix this.</p>