Support the ongoing development of Laravel.io →
Authentication Database

Hi, my L4 apps runs in MySQL, and all my user accouts are in SQL-Server.

I would like create a basic custom auth driver for external authentication via SQL-Server, and have no clue at all. Any example for this?

Last updated 3 years ago.
0

Probably it would be sufficient to just define a connection property in your User model to match the name of the database connection to SQL Server.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

sutonium sutonium Joined 1 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.