Change Laravel User table fields 5.4

Asked

Viewed 281 times

1

I’m using Laravel on my TCC and study it through videos and internet articles.

I created the authentication part with the make:auth command and everything is working correctly, but I would need to change the fields of the User table to the default of my project.

The table name I was able to change to Users in the config auth.php file but the fields have already spent a few hours researching and all the information I find are from previous versions of Laravel and probably in version 5.4 the structure has been changed.

The changes I need are:

id > usu_id
name > usu_nome
email > usu_email
password > usu_senha
remember_token > usu_lembrar

Thanks in advance.

1 answer

-1

You have to use the table method: Schema::table('bank name', Function(Blueprint $table){

   //O que você for alterar ou incluir na tabela

});

Browser other questions tagged

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