Skip to content

🪴 Lumina '1'

Compare
Choose a tag to compare
@mychidarko mychidarko released this 13 Feb 19:02
· 47 commits to main since this release
90ce822

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();