Forgot, the extra method params come from routes that would be formed like /login/{email}/{password}. This is completely unacceptable. The information will probable be available in the Request object anyway, so I'll use that.
Needs for App\Models\User
Current migration, model, and factory come from Laravel 8 scaffolding. Should be a good starting point, but will need some changes to keep track of logins.
Relationship with Login (see below)
Roles (even though there will initially only be 1 admin and no signup method)
Needs for App\Models\Login
one<->many relationship with User
Create new only when user logs in successfully
Never update instances of Login
Include IP address if user type is "admin"
Should only ever be mine anyway, but this will be a good safeguard in case I ever allow sign-ups for some reason
(Migrated from Trello)
Forgot, the extra method params come from routes that would be formed like
/login/{email}/{password}
. This is completely unacceptable. The information will probable be available in theRequest
object anyway, so I'll use that.Needs for
App\Models\User
Current migration, model, and factory come from Laravel 8 scaffolding. Should be a good starting point, but will need some changes to keep track of logins.
Login
(see below)Needs for
App\Models\Login
User
Login
Checklist