backpack for laravel extends AuthenticatesUser method -


i'm using laravel's backpack crud, need change line of code located in vendor/laravel/src/illuminate/foundation/auth/authenticatesusers.php

from :

 public function username()  {         return 'email';  } 

to :

 /**  * login username used controller.  *  * @return string  */ public function username() {            return 'username'; } 

i tried extend on controllers/admin/auth/logincontroller.php no success, or how should work?


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -