Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename table user #54

Open
yruama opened this issue Apr 5, 2018 · 1 comment
Open

Rename table user #54

yruama opened this issue Apr 5, 2018 · 1 comment

Comments

@yruama
Copy link

yruama commented Apr 5, 2018

Is it possible to rename the table users ?
I already have a user table for my admin panel.

Thanks!

@BrunoPansani
Copy link

BrunoPansani commented Aug 7, 2018

Yes, it is.
As per Laravel docs, you should just add a protected variable called $table and set it to the name of your table on the user model.

class User extends Model
{
    protected $connection = 'myDB'; // If you want the specify your DB connection..

    protected $table = 'my_users_table'; // Specifying the table

....
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants