Instead of laravel default registration and login, I want the user to be able to log in using their Gmail or facebook profiles. How can I achieve this? Also, I need to grab the users id as the user will be able to purchase products.
Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing.