and another one

This commit is contained in:
2018-10-15 20:29:02 -05:00
parent 2e71fded15
commit f73c09c71b
4 changed files with 43 additions and 7 deletions

View File

@@ -2,7 +2,8 @@
namespace App;
use Laravel\Socialite\Contracts\User as ProviderUser;
//use Laravel\Socialite\Contracts\User as ProviderUser;
use Laravel\Socailiate\Two\User as ProviderUser;
class AuthAccountService {
/**
@@ -11,9 +12,9 @@ class AuthAccountService {
*
* @param \Laravel\Socialite\Two\User $user
*/
private function createOrGetUser(Provider $eve_user) {
public function createOrGetUser(ProviderUser $eve_user) {
$account = AuthAccount::whereProvider('eveonline')->whereProviderUserId($providerUser->getId())->first();
$account = AuthAccount::whereProvider('eveonline')->whereProviderUserId($eve_user->getId())->first();
if($account) {
return $account->user;