Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lse123's avatar

social login - record in Database, in the Users table in password field

When a User Sign in / Register with Social Credentials [ https://laravel.com/docs/8.x/socialite ] for the first time - in my case these being Facebook, Google, and GitHub

What I have to record in Database, in the Users table in password field....????

0 likes
6 replies
kingmaker_bgp's avatar

Just leave the password field empty NULL and add the columns to store the Provider details

- Provider Name (Facebook, Google or Github)
- Provider ID
1 like
lse123's avatar
  • Provider Name (Facebook, Google or Github)
  • Provider ID

These User table fields for normal registration should be NULL?

lse123's avatar

Also, the password field is Not NULL by default but is required

make it NULL...?

lse123's avatar

In the default User table I intent add User Sign in / Register with Social Media Credentials [ https://laravel.com/docs/8.x/socialite ]

basically, if the User uses Google Social Media Sign in --- what insert in the Users table password field???

kingmaker_bgp's avatar
Level 8

@lse123, just insert NULL on the password field if the User uses Google / Social Media Sign In

1 like

Please or to participate in this conversation.