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!
Man, a great thanks from France. Your explanations are clear and concise. Have a good one !
Grateful ❤️
Well explained 👌🏻 really helpful.
Thanks a lot! Great explanation! I got it right the first time!
Welcome ❤️
Thank you sir! that is very excellent and wonderful tutorial.Excited about the way Facebook works.
I am glad to hear that ❤
I finally found the solution after searching for so many days. I am giving u a like and subscribe. Thank you.
Glad I could help
Great Work👍Very helpful and well-explained.
Thanks sir. ❤
cool, thanks!
Thanks a million bro. From Nigeria.
Glad it helped
Thanks Bro form 🇮🇩
My pleasure brother, glad to see you here. I will be always here to help.
Thank you so much 😊 from 🇹🇭
Welcome 🌹
great!
Thank you for this video
Always welcome ❤️
very helpful, Love form UK🥰
it's your love 💕
Thank you!
👍🏻
Very good!
Thanks
hi, no matter what i do, i get the error Laravel\Socialite\Two\InvalidStateException, what do you think is the problem?
thanks a lot!
thanks
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 ?
❤❤❤
thanks love
Glad I could help ❤️
Great
👍🏻
thanks
My pleasure.
i got this error "Session store not set on request.", do you know why?
Mine keeps going back to the login screen after trying to sign in with google, what could be the problem
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
I didn't cover vue js in this video
bro what extensions did you use at 13:22 Socialite
Is it support for laravel 9 and use with Fortify lib?
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.
20:12 what extentions do you use to help on that part? thanks before
I only use laravel socialite and then integrate it
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
is it possible to use the same method for firebase?
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
nvm, fixed it already, hadn't linked up all paths
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~
Try again
bro do i need to make the table on mysql first?
Yes offcourse
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❤️
Thank! But and how does logout work? Is not the same thing..
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...
Error aa raha hai bro 404 not found same code likha hu to bhi se
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
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.
dd will always helpful
@@jacotinvilken8449 google id bende de boş çözümü yok mu ?
the same code on my laravel project but its show me 403 forbidden error
Plz follow all steps
bro can you help me why it force me to fill the username and password first instead of login to my google account?
Make it nullable
@@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"
i do exactly what u do but it redirect to the homepage and also google id is empty in database
Hello Sir, please check again or try to read the docs maybe something is missing.
Did you resolve the issue? I am facing the same issue too!
@@alainhonorekubwayo8819 I'm facing an error when new user sign in
@@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.
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.
php artisan migrate fresh deleted all my datas thanks
🤣🤣
😂
is it possible to use the same method for firebase?
yes