Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Fixing token insert
Browse files Browse the repository at this point in the history
  • Loading branch information
joedawson committed Aug 5, 2017
1 parent c95e010 commit 792bca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ private function setup(Google_Client $client)
public function saveAccessTokenToDB($accessToken)
{
return DB::table('youtube_access_tokens')->insert([
'access_token' => $accessToken,
'created_at' => Carbon::createFromTimestamp(json_decode($accessToken)->created)
'access_token' => json_encode($accessToken),
'created_at' => Carbon::createFromTimestamp($accessToken['created'])
]);
}

Expand Down

0 comments on commit 792bca1

Please sign in to comment.