Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/07/2015, 11:07
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 10 meses
Puntos: 379
Respuesta: Cambiar campos de login Laravel 5.1

Si es así, solo tienes que agregar la propiedad username al AuthController
Código PHP:
Ver original
  1. class AuthController extends Controller
  2. {
  3.     protected $username = 'username';
  4.    
  5.     /*
  6.     |--------------------------------------------------------------------------
  7.     | Registration & Login Controller
  8.     |--------------------------------------------------------------------------
  9.     |
  10.     | This controller handles the registration of new users, as well as the
  11.     | authentication of existing users. By default, this controller uses
  12.     | a simple trait to add these behaviors. Why don't you explore it?
  13.     |
  14.     */
  15.  
  16.     use AuthenticatesAndRegistersUsers;
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.