title: After submitting a form, I get "Method Illuminate\Validation\Validator::validate255 does not exist."
body: <p>After submitting a form, I get this error "Method Illuminate\Validation\Validator::validate255 does not exist.",</p>
  
  <p>I have checked functions where i have validating, and can't even find what the problem is?</p>
  
  <p>Here is my first store function:</p>
  
  <pre><code> public function store(Request $request)
  {
      // Validate form
  
      $this-&gt;validate($request, [
          'name' =&gt; 'required|255',
          'email' =&gt; 'required|email|unique:users'
      ]);
  
      // Generate password
      if(Request::has('password') &amp;&amp; !empty($request-&gt;password)){
          $password = trim($request-&gt;password);
      } else{
          # set the manual password
          $length = 10;
          $keyspace = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
          $str = '';
          $max = mb_strlen($keyspace, '8bit') - 1;
  
      for ($i = 0; $i &lt; $length; ++$i) {
          $str .= $keyspace[random_int(0, $max)];
      }
          $password = $str;
      }
  
      $user = new User();
  
      // Insert User's data into database
      $user-&gt;name = $request-&gt;name;
      $user-&gt;email = $request-&gt;email;
      $user-&gt;password = Hash::make($password);
  
  
      if($user-&gt;save()){
          return redirect()-&gt;route('users.show', $user-&gt;id);
      } else{
          Session::flash('danger', 'Sorry, a problem occured while creating this user.');
          return redirect()-&gt;route('users.create');
      }
  
  }
  </code></pre>
  
  <p>And, here is update function for editinig user:</p>
  
  <pre><code>public function update(Request $request, $id)
  {
      $this-&gt;validate($request, [
          'name' =&gt; 'required|max:255',
          'email' =&gt; 'required|email|unique:users,email,'.$id
      ]);
  
      $user = User::findOrFail($id);
      $user-&gt;name = $request-&gt;name;
      $user-&gt;email = $request-&gt;email;
  
      if($request-&gt;password_options == 'auto'){
          # set the manual password
          $length = 10;
          $keyspace = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
          $str = '';
          $max = mb_strlen($keyspace, '8bit') - 1;
  
      for ($i = 0; $i &lt; $length; ++$i) {
          $str .= $keyspace[random_int(0, $max)];
      }
          $password = $str;
  
      } elseif($request-&gt;password_options == 'manual'){
          $user-&gt;password = Hash::make($request-&gt;password);
      }
  
      if($user-&gt;save()){
          return redirect()-&gt;route('users.show', $id);
      } else{
          Session::flash('danger', 'There was a problem saving the updated user info to the database. Please, try again.');
          return redirect()-&gt;route('users.edit', $id);
      }
  }
  </code></pre>
  
  <p>I don't think there is a problem with front-end, but if that can be for some reasone, i'll update the post.</p>