From the course: Extending Laravel with First Party Packages

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Building the FindOrCreateUser method

Building the FindOrCreateUser method

- Alright so in the last video we've prepared a lot of the logic. We also created the routs needed for our application and that's really the logic that's needed to get Socialite running. Now there is one last step, and this is kind of an important step, and that's why I wanted to take it a little bit slower than what we did with some of the stuff in the last video, and I wanted to break it out into its own video. So for this video, we're gonna be focusing on the second part of adding all of that logic to our controllers, and we're gonna focus on building the FindOrCreateUser method. So you guys saw this in the last video. Basically, this is where we decide we're gonna take the user's information, we're gonna see if they have a current account, if they've logged in before, and we're going to handle it appropriately. Okay, so that's the focus of this video. We're gonna build out just that FindOrCreateUser helper method, and that'll complete the logic that's needed for our application to…

Contents