<?php

use Laracasts\Validation\FormValidator;

class UserValidator extends FormValidator {

  /**
   * Validation rules for logging in.
   *
   * @var array
   */
  protected $rules = [
    'username' => 'required|unique:users',
    'email' => 'required|email|unique:users',
    'password' => 'required|confirmed'
  ];

}

<?php

use Laracasts\Validation\FormValidator;

class UserValidator extends FormValidator {

  /**
   * Validation rules for logging in.
   *
   * @var array
   */
  protected $rules = [
    'email' => 'required|email|unique:users',
    'password' => 'required|confirmed'
  ];

}

Fix unnecessary validation for a username field.
Fix unnecessary validation for a username field.
