0

I'm pretty new to Laravel and PHP but I have made an app that requires a user to log in, now this table is called users and all my users sit in there, but I want to make another table called temUsers and use that table instead... but I don't know where the code points to that user table so I can change it to temUsers. Can anyone please assist in knowing which file would point to this?.

segawe
  • 35
  • 5

1 Answers1

1

Add $table property in User model.

 protected $table="temUsers";

Ref:https://laravel.com/docs/8.x/eloquent#table-names

John Lobo
  • 14,355
  • 2
  • 10
  • 20