|
@ -99,7 +99,7 @@ class TeamController extends Controller |
|
|
$player = Player::where('twitter_user_id', $profile->id_str)->first(); |
|
|
$player = Player::where('twitter_user_id', $profile->id_str)->first(); |
|
|
if(!$player) { |
|
|
if(!$player) { |
|
|
$player = new Player; |
|
|
$player = new Player; |
|
|
$player->twitter_user_id = $profile->id; |
|
|
|
|
|
|
|
|
$player->twitter_user_id = $profile->id_str; |
|
|
} |
|
|
} |
|
|
$player->team_id = $request->input('team'); |
|
|
$player->team_id = $request->input('team'); |
|
|
$player->name = $profile->name; |
|
|
$player->name = $profile->name; |
|
|