LARAVEL SOCIALITE - LOGIN WITH SOCIAL ACCOUNT - GOOGLE SOCIAL LOGIN

Поделиться
HTML-код
  • Опубликовано: 29 июл 2022
  • #laravel #laraveltutorial #php
    LARAVEL SOCIALITE - LOGIN WITH SOCIAL ACCOUNT - GOOGLE SOCIAL LOGIN
    In today's video, we will learn how we can add social login in to our laravel application. In this video I will show you with an example by adding google social login and if you can successfully add social login with google then facebook, github, twitter or any othter social login will be as same as google social login work.
    The package that we used in this video:
    laravel.com/docs/9.x/socialite
    github.com/laravel/socialite
    To create OAuth credentials:
    console.cloud.google.com/
    I hope that this will help you and thanks for supporting!
    Thanks!

Комментарии • 83

  • @duchateaumathieu112
    @duchateaumathieu112 Год назад +3

    Man, a great thanks from France. Your explanations are clear and concise. Have a good one !

  • @Daniel-cw3xr
    @Daniel-cw3xr Год назад +2

    Well explained 👌🏻 really helpful.

  • @user-ir7sv4gc8w
    @user-ir7sv4gc8w Год назад +2

    Thanks a lot! Great explanation! I got it right the first time!

  • @0O0day
    @0O0day Год назад +1

    Thank you sir! that is very excellent and wonderful tutorial.Excited about the way Facebook works.

  • @webmucho1706
    @webmucho1706 Год назад +2

    I finally found the solution after searching for so many days. I am giving u a like and subscribe. Thank you.

  • @afolabiabiodun7582
    @afolabiabiodun7582 Год назад +2

    Great Work👍Very helpful and well-explained.

  • @user-cn1dk9iy7j
    @user-cn1dk9iy7j 10 месяцев назад +2

    cool, thanks!

  • @oluwapamilerinsobiyede3846
    @oluwapamilerinsobiyede3846 11 месяцев назад +2

    Thanks a million bro. From Nigeria.

  • @hadiansyahadegunawan
    @hadiansyahadegunawan 2 года назад +5

    Thanks Bro form 🇮🇩

    • @takneekicode
      @takneekicode  2 года назад

      My pleasure brother, glad to see you here. I will be always here to help.

  • @9non-studio
    @9non-studio 10 месяцев назад +2

    Thank you so much 😊 from 🇹🇭

  • @xamarine767
    @xamarine767 Год назад +1

    great!

  • @mohib28
    @mohib28 9 месяцев назад +2

    Thank you for this video

  • @unknownname6671
    @unknownname6671 2 месяца назад

    very helpful, Love form UK🥰

  • @chalitajodrum328
    @chalitajodrum328 Год назад +1

    Thank you!

  • @leocroft28
    @leocroft28 Месяц назад

    Very good!

  • @xp0nat
    @xp0nat Год назад +1

    hi, no matter what i do, i get the error Laravel\Socialite\Two\InvalidStateException, what do you think is the problem?

  • @jjkklls
    @jjkklls 2 месяца назад

    thanks a lot!

  • @murtazanoori6414
    @murtazanoori6414 Год назад +1

    when i click on login with google it throws this error
    Trying to access array offset on value of type null , do you know how to fix this ?

  • @mathematicianfenteng2755
    @mathematicianfenteng2755 Год назад +1

    ❤❤❤

  • @toxicmystro1261
    @toxicmystro1261 3 месяца назад +1

    thanks love

  • @ve3n0m_gaming
    @ve3n0m_gaming 8 месяцев назад +1

    Great

  • @kaiowas89
    @kaiowas89 Год назад +1

    thanks

  • @Moon-no8mv
    @Moon-no8mv 8 месяцев назад +1

    i got this error "Session store not set on request.", do you know why?

  • @adimorachidozie9350
    @adimorachidozie9350 Год назад

    Mine keeps going back to the login screen after trying to sign in with google, what could be the problem

  • @phongngo315
    @phongngo315 Год назад +1

    Hello sir!
    I have tried as you do in this video, but I use vuejs for frontend, then I use api to do it. But when I click on login, I receive this error: ... has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
    Please help me

  • @ivansukhito6972
    @ivansukhito6972 Месяц назад

    bro what extensions did you use at 13:22 Socialite

  • @puminwongsiri8658
    @puminwongsiri8658 Год назад +1

    Is it support for laravel 9 and use with Fortify lib?

    • @takneekicode
      @takneekicode  Год назад

      Yes it is supported but I suggest you to use laravel 8 with PHP 7.4 or something because most of the libraries support php 7 or 7.4.

  • @JendralFakboi
    @JendralFakboi Год назад +1

    20:12 what extentions do you use to help on that part? thanks before

    • @takneekicode
      @takneekicode  Год назад

      I only use laravel socialite and then integrate it

  • @abdillahevan2477
    @abdillahevan2477 2 месяца назад

    Good video and really helpful... Thanks a lot, but I have a question regarding why does sometimes we need to face consent page and sometimes not. Why does in your video there is no consent page at all? Thanks again in advance

  • @LutfuaWiwit
    @LutfuaWiwit Месяц назад

    is it possible to use the same method for firebase?

  • @trifyy
    @trifyy Год назад +1

    i got Target Class [GoogleAuthController] does not exist error, would you know how to fix that? i did step by step with your video but i noticed i don't have auth.php file in routes

    • @trifyy
      @trifyy Год назад +1

      nvm, fixed it already, hadn't linked up all paths

  • @alvinhai96
    @alvinhai96 Год назад +1

    Hi, I have tried as u did in the video but met a error regarding the certificate of the website. This is the error code i received. cURL error 60: SSL certificate problem: unable to get local issuer certificate. Do u have any idea how to i solve this? Thank you~

  • @JendralFakboi
    @JendralFakboi Год назад +1

    bro do i need to make the table on mysql first?

  • @RehmanAli-vw9ow
    @RehmanAli-vw9ow Год назад +2

    I am a beginner and The main thing is you also tell about how to create oAuth accout and that was the point where I was stuck.
    Really Really Helpful man thanks❤️

  •  2 года назад +1

    Thank! But and how does logout work? Is not the same thing..

    • @takneekicode
      @takneekicode  2 года назад +1

      Log out will work with a simple Auth::logout($user), i don't have to add it because that has been already added in the AuthSessionController class with the help of breeze auth...

  • @ajeetverma3936
    @ajeetverma3936 Год назад +1

    Error aa raha hai bro 404 not found same code likha hu to bhi se

  • @jacotinvilken8449
    @jacotinvilken8449 Год назад +1

    Thank you for the video really helpfull. But when i'm trying to login with an existing user that already created via the google button i get an error. It can't be connected

    • @jacotinvilken8449
      @jacotinvilken8449 Год назад +1

      I solve the issue. It was because we try to get the google_id in the database however the google_id is still null after we create the user.

    • @takneekicode
      @takneekicode  Год назад

      dd will always helpful

    • @yusufoz5246
      @yusufoz5246 Год назад

      @@jacotinvilken8449 google id bende de boş çözümü yok mu ?

  • @user-mi2tr3po7h
    @user-mi2tr3po7h 10 месяцев назад +1

    the same code on my laravel project but its show me 403 forbidden error

  • @JendralFakboi
    @JendralFakboi Год назад +1

    bro can you help me why it force me to fill the username and password first instead of login to my google account?

    • @takneekicode
      @takneekicode  Год назад

      Make it nullable

    • @JendralFakboi
      @JendralFakboi Год назад

      @@takneekicode bro i got new problem can you help me again, i tried everything but it keep showing this error when i tried to log in "something wrongSQLSTATE[HY000]: General error: 1364 Field 'password' doesn't have a default value"

  • @poxntgaming
    @poxntgaming Год назад +2

    i do exactly what u do but it redirect to the homepage and also google id is empty in database

    • @takneekicode
      @takneekicode  Год назад

      Hello Sir, please check again or try to read the docs maybe something is missing.

    • @alainhonorekubwayo8819
      @alainhonorekubwayo8819 Год назад +1

      Did you resolve the issue? I am facing the same issue too!

    • @poxntgaming
      @poxntgaming Год назад +2

      @@alainhonorekubwayo8819 I'm facing an error when new user sign in

    • @alainhonorekubwayo8819
      @alainhonorekubwayo8819 Год назад +3

      @@poxntgaming Actually, you need to add google_id to the protected $fillable array in your User model. That's how I resolved it. Hope this helps.

    • @takneekicode
      @takneekicode  Год назад +1

      Yes you are right for storing data without seeding you need to add every field to fillable or $guarded. This is called mass assignment in laravel orm.

  • @huseyinyeldan7998
    @huseyinyeldan7998 9 месяцев назад +2

    php artisan migrate fresh deleted all my datas thanks

  • @LutfuaWiwit
    @LutfuaWiwit Месяц назад

    is it possible to use the same method for firebase?