i'm building cross-platform app so i have website and mobile app. also I've Authentication part for both website and app.
and i'm using Laravel As backend. For auth i found something called "Auth Guards" and there are two default Auth guard in Laravel, one for web and other for API.
But i'm a bit confused cause i found that you can't use both Auth Guards at the same time.
So, is there any way to build authentication system based in one Database Table For Website an Mobile.
NOTE i need any solution except Firebase Auth
Auth.php
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
Auth.php
? ... what version of Laravel are you using? – lagboxAuth.php
file are you referring to? when you assign theauth
middleware you can actually pass it as many guards as you want btw and it will loop through them (middleware parameters) though not sure if that is what you need – lagbox