google-authenticatin-laravel

Google Authentication in Laravel 5.3

Authentication with third party providers like google, facebook, twitter etc. is very common functionality in every web application. For achieve this in core php little bit difficult. But laravel makes it’s simple. Because laravel provides  Socialite package to do simple. In this article i want to explain google authentication using laravel socialite package.

step 1 : Install  Socialite Package 

step 2 : set the configurations

add providers and aliases in config file i.e., config/app.php

step 3 : Create Google App

Creating google app

step 4 : set app id, secret and call back url in config file

i.e., config/services.php

step 5: Config routing (app/Http/routes.php)

step 6: Controller (app/Http/Controllers/AuthController.php)

step 6: Views

step 7: sample screens

google authentication inlaravel 5.3

google authentication inlaravel 5.3

  • Kent Bayron

    boss, help me layouts.master doesnt exist ?
    should make a layouts.master ? how to do it ? what will be the code inside ?
    #Beginner

    • bhaskar

      Create ‘layouts’ folder inside ‘resources/views/’ and copy the above master.blade.php file

    • Create ‘layouts’ folder inside ‘resources/views/’ and copy the above master.blade.php file