Advanced

Socialite

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

This functionality is based on the Laravel Socialite package.

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 configured) and the image for the button.

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

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