title: Missing required parameters for route in Laravel
body: <p>in my laravel application whenever i go to this route:  /admin or admin/users I get the following error message but the the other routes work like admin/users/create or admin/users/edit:</p>
  
  <pre><code>Missing required parameters for [Route: admin.users.edit] [URI: admin/users/{id}/edit]. (View: C:\xampp\htdocs\CMS\resources\views\admin\index.blade.php)
  </code></pre>
  
  <p>To note I'm not including all the html code of index.blade.php as it's too long the only blade code is from what i have pasted.</p>
  
  <p>Index.blade view:</p>
  
  <pre><code> &lt;ul class="nav nav-second-level"&gt;
                              &lt;li&gt;
                                  &lt;a href="{{route('admin.users.edit')}}"&gt;All Userss&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>Route list:</p>
  
  <p>URI: </p>
  
  <pre><code>- admin/users
  - admin/users/create
  - admin/users/store
  - admin/users/update
  - admin/users/{id}/edit
  </code></pre>
  
  <p>Name:</p>
  
  <pre><code>1. admin.users.index
   2. admin.users.create
   3. admin.users.store
   4. admin.users.update
   5. admin.users.edit
  </code></pre>
  
  <p>Action:</p>
  
  <pre><code> 1. App\Http\Controllers\AdminUsersController@index 
   2. App\Http\Controllers\AdminUsersController@create 
   3. App\Http\Controllers\AdminUsersController@store 
   4. App\Http\Controllers\AdminUsersController@update 
   5. App\Http\Controllers\AdminUsersController@edit
  </code></pre>
  
  <p>admin/users</p>
  
  <p>Routes:</p>
  
  <pre><code>Route::get('admin/users/', [
  
      'uses' =&gt; 'AdminUsersController@index',
      'as' =&gt; 'admin.users.index'
  ]);
  
  
  Route::get('admin/users/create', [
  
      'uses' =&gt; 'AdminUsersController@create',
      'as' =&gt; 'admin.users.create'
  ]);
  
  Route::get('admin/users/{id}/edit', [
  
      'uses' =&gt; 'AdminUsersController@edit',
      'as' =&gt; 'admin.users.edit'
  ]);
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>    public function edit($id)
      {
  
          $user = User::findOrFail($id);
  
          $roles = Role::pluck('name', 'id')-&gt;all();
  
          return view('admin.users.edit', compact('user', 'roles'));
      }
  
  
      public function update(Request $request, $id)
      {
          //
      }
  </code></pre>
  
  <p>Edit View:</p>
  
  <pre><code>@extends('layouts.admin')
  
  @section('content')
  
  &lt;h1&gt;Edit Users&lt;/h1&gt;
  
  {!! Form::open(['method' =&gt; 'PATCH', 'action' =&gt; ['AdminUsersController@update', $user-&gt;id], 'files' =&gt; true]) !!}
  
  @include('includes.form-error')
  
  &lt;div class="form-group"&gt;
  
      {!! Form::label('name', 'Name:') !!}
      {!! Form::text('name', null, ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
  
  &lt;div class="form-group"&gt;
  
      {!! Form::label('email', 'Email:') !!}
      {!! Form::email('email', null, ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
  
  &lt;div class="form-group"&gt;
  
  &lt;div class="form-group"&gt;
  
      {!! Form::label('role_id', 'Role:') !!}
      {!! Form::select('role_id',$roles , null, ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
  
      {!! Form::label('status', 'Status:') !!}
      {!! Form::select('status', [1 =&gt; 'Active', 0 =&gt; 'Not Active'], 0, ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
  
      {!! Form::label('photo_id', 'Photo:') !!}
      {!! Form::file('photo_id', null, ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
  
  &lt;div class="form-group"&gt;
  
      {!! Form::label('password', 'Password:') !!}
      {!! Form::password('password', ['class' =&gt; 'form-control']) !!}
  
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
  
      {!! Form::submit('Create User', ['class' =&gt; 'btn btn-primary']) !!}
  
  &lt;/div&gt;
  
  
  {!! Form::close() !!}
  
  
  @endsection
  </code></pre>