title: Target [App\Http\Requests\Request] is not instantiable when trying to update user
body: <p>I've got an EditUsersRequest Request set up for editing users, and in order to make sure email addresses stay unique but ignore the email address of the user being edited (so they don't have to change their email address to something unique every time they get edited), I've got as parameters Request $request in the rules() function. This worked perfectly fine yesterday, and I've made no changes to the code, but now I keep getting the error Target [App\Http\Requests\Request] is not instantiable. when trying to update the user. How can I fix this? I don't understand why it's now not working. Here's the code for the request and the controller:</p>
  
  <p>Request:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use App\Http\Requests\Request;
  use Illuminate\Support\Facades\Auth;
  
  class EditUserRequest extends Request
  {
      public function authorize()
      {
          return Auth::user()-&gt;isActive() ? true:false;
      }
  
      public function messages()
      {
          return [
              'unique'=&gt;'That email address is already registered',
              'regex'=&gt;'Password must contain at least 1 letter and 1 number'
          ];
      }
  
      public function rules(Request $request)
      {
          return [
              'name'=&gt;'required|min:2|max:50',
              'email'=&gt;'required|email|max:50|unique:users,email,'.$request-&gt;get('id'),
              'password'=&gt;'required'
              //'password'=&gt;'required|min:8|regex:/[a-zA-Z][0-9]/' NOT IN USE WHILE IN DE
          ];
      }
  }
  </code></pre>
  
  <p>Controller method:</p>
  
  <pre><code>public function update(EditUserRequest $request, $id)
      {
          $user = User::findOrFail($id);
  
          if(trim($request-&gt;password) == '') {
              $data = $request-&gt;except('password');
          } else {
              $data = $request-&gt;all();
              $data['password'] = bcrypt($request-&gt;password);
          }
  
          if($file = $request-&gt;file('photo_id')) {
              $name = time().'_'.$file-&gt;getClientOriginalName();
  
              $file-&gt;move('images', $name);
              $photo = Photo::create(['path'=&gt;$name]);
              $data['photo_id'] = $photo-&gt;id;
          }
  
          $data['is_active'] = !$request-&gt;is_active ? 0:1;
  
          $message = $user-&gt;update($data) ? "User {$user-&gt;name} has been updated": "Unable to update user {$user-&gt;name}";
  
          Session::flash('updated', $message);
  
          return redirect('/admin/users');
      }
  </code></pre>