User Module

The User module configuration file can be found at config/asgard.user.users.php.

Adding data on the users table

You can add additional columns on the users table if that's really needed. For instance if you want to have an username.

This defaults to the following fields:

'fillable' => [

Changing login columns

On the Sentinel user driver, you can choose which columns you would like to use as login attribute. By default this uses the email column.

'login-columns' => ['email'],

You'll notice this is an array, indeed Sentinel allows multiple possible login columns.

Changing redirect route after login

Define which route to redirect to after a successful login.

This defaults to the homepage route.

'redirect_route_after_login' => 'homepage',

User driver

Define which user driver to use.

It defaults to Sentinel.

'driver' => 'Sentinel',

Make sure to install the wanted driver on composer first.

Also, be sure to check out the User Drivers documentation page for additional info on how to create new user & role drivers.

Mobile Analytics