Support the ongoing development of Laravel.io →
Authentication Database Eloquent

Seeing the latest changes of the User Model and User Authentication in the latest versions of Laravel. Which fields should be the table users to works properly? Id, email, username, password, and what other fields will be necessary? I refer to the remember tokens and others properties.

Thanks in advanced.

Last updated 3 years ago.
0
Solution

As is specified on the official upgrade page (http://laravel.com/docs/upgrade#upgrade-4.1.26) you'll need the remember_token column on the user table now.

You also need the shown functions in the user model.

This makes the mandatory fields on the User table the following:

  • id
  • email or username (Only one is necessary. You can use any unique identifier you like.)
  • password
  • remember_token

Regards!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.