How to change the default name of the Laravel users table columns

Asked

Viewed 527 times

0

I am interested in changing the default name of the table columns users and password_reset of Laravel 5.3.

My question is, in which locations or configuration files should I replicate this change?

  • What is the reason, I ask why this field for example is used to recover the password and there is the algorithm ready?

  • The idea would be to overwrite the fields in the table so that they follow all the en default. I can map this in the application, IE, gives an alias or something so that in the bank is a name but the application can still handle login process, password recovery etc.

  • Personally I wouldn’t indicate the password_reset for example you have to change native code of the core I don’t think it’s cool ever since any update you would miss it, you can even put more fields those are email, password e password_reset i would not put the hand, they have no setting to change the name maybe in other versions... !

  • Got it, so better not change it right

  • 1

    No, you can add fields that can, change these can give problems

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.