0

Is it possible to connect to different DB's (both mysql) with Laravel depending on the authentication method of the user?

Example:

  • User A : authentication method: web --> DB1
  • User B : authentication method: API --> DB2
cooper
  • 635
  • 1
  • 8
  • 23
  • 1
    Yes, possible. Look here https://stackoverflow.com/a/31847198/4575350 – STA Aug 05 '20 at 07:36
  • 1
    Does this answer your question? [How to use multiple databases in Laravel](https://stackoverflow.com/questions/31847054/how-to-use-multiple-databases-in-laravel) – N69S Aug 05 '20 at 07:42
  • Yes, that was what I was looking for. Thanks a lot! – cooper Aug 05 '20 at 10:49

0 Answers0