/login
or /register
route to implement your authentication.web
dictionary is the configuration for the web guard.Auth
class and using the attempt
method:None
.None
.cookie
driver which sets a token
cookie which is used later to fetch the user.