2

Continue from this question

Lets say I have :

Database_one:
users[
username,
password
]

And

Database_two:
employee[
username,
password
]

I was done make custom auth with database_one and work perfectly. in the same application, I want to create same auth but with database_two

I was found default auth laravel is

App\User
App\Http\Controllers\Auth
Config\Auth

What I must do now ? copy-paste default laravel auth file and change/modif value ? Or how ?

I am new to laravel,

Thanks for Adv.

Angga.

Roman Pokrovskij
  • 9,449
  • 21
  • 87
  • 142
Anggagewor
  • 167
  • 1
  • 2
  • 15
  • This is not the right way to do this. Have one single table for handling users. Store all of the information, then have a separate table for employees. Remember the rules in inheritance: `A [USER] CAN BE [employee]` no need to store information twice. – Phorce Oct 29 '15 at 15:51

0 Answers0