I'm using Sentinel by Cartalyst for authentication with PHP. The traditional way to authenticate is by use of e-mail and password, as we can read in their documentation:
$credentials = [
'email' => 'john.doe@example.com',
'password' => 'password',
];
Sentinel::authenticate($credentials);
The default users table provided by the library is like that:
id | email | password | permissions |last_login | first_name | created_at | updated_at
I want to add a username column and authenticate using Sentinel by username and password. Is it possible?