Socialite

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

For convenience, you can link the account to social networks and simplify the authentication process

The process is based on a Laravel package - Socialite

Socialite

Make sure you have it installed and configured

Next, in the moonshine config config/moonshine.php install the available drivers (you should already have them set up) and the image for the button

return [
//
'socialite' => [
'github' => '/images/github.png',
'facebook' => '/images/facebook.svg'
]
//
];

If you use your model for authentication, then you need to add the trait HasMoonShineSocialite to it