i have laravel project.I want to use username authentication.Is there any way to define which attribute in table that can be used for username authentication?
I read some discussion on the internet.People says we should use this method for username authentication in logincontroller.php
public function username() { return 'username' }
what is this method trying to return?