1 . change the validation rule on the authController
https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/AuthController.php#L42
2 . change the create method on the same controller
https://github.com/laravel/laravel/blob/master/app/Http/Controllers/Auth/AuthController.php#L57
3 . copy paste the method from AuthenticatesAndRegistersUsers trait to AuthController and change it so it doesn't use email
Perfect. There ended up being a little more to it than this (in particular, copying the postLogin method needs some dependencies added to AuthController and a reference to $this to be swapped out) but this got me started. Thank you very much!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community