Releases: leafsphp/auth
Releases Β· leafsphp/auth
πͺ΄ Lumina '1'
v2.1.1 - 16 Feb 2022
Fixed
- Fixed config error
πͺ΄ Lumina '1'
v2.1 - 13 Feb 2022
Added
- Added db_table config
The DB_TABLE
config allows you to set a particular table which leaf auth will perform operations on. Leaf auth will use this database table for storing and retrieving users. By default, it is set to users
. This allows you to login, signup, update and fetch users without explicitly adding a table each time.
Fixed
- Fixed wrong documentation
Removed
- Removed table parameter on all references
Following the addition of the DB_TABLE
config, the table parameter has been removed from leaf auth. This means that you can now pass in only the credentials on a user login like this:
$credentials = request()->get(['username', 'password']);
auth()->login($credentials);
This also applies to register
, update
and user
.
// register
auth()->register($credentials);
// update
auth()->update($data);
// user
auth()->user();
πͺ΄ Lumina
v2.0 - 24 Jan 2022
Added
- Added
dbConnection
method - Added auto connect to leaf db instance
- Added support for functional mode
- Added
validate
function - Added
logout
function for sessions
Fixed
- Fixed guard issue (#1)
- Fixed bugs from using auth with static methods
- Fixed redirect bug
Changed
- Upgraded dependencies
- Restructured leaf auth
update
no longer requires the where parameterupdate
now requires user to be logged in- Switched to leaf db v2
- Sessions are no longer experimental
- Renamed
validate
tovalidateUserToken
Removed
- Removed unused files
- Removed
hasAuth
from guard - Removed validate parameter from
login
,register
andupdate
v1.1.2
:sparkles: added session length
v1.1.1
v1.1.1 - 22 Nov, 2021
Added
- Added
config
method on auth
v1.1.0
v1.1.0 - 7 Nov, 2021
Changed
- Broke auth into subclasses
v1.0
20 Sep, 2021