Back
?

Anonymously

Hello Steve,
I have admins and users table, but laravel 11 ships with sessions table with user_id foreign key. How may I have session recorded for admins as well since I have implemented multi auth guards for those separately.

You could either edit the migration, or an easy "hacky" way would be to just use the "user_id" column for your admins too - as it's not constrained to the users table directly.

1K

  • No matching results...
  • Searching...

/ 1000