diff --git a/src/Youtube.php b/src/Youtube.php index a55e93a..226578e 100644 --- a/src/Youtube.php +++ b/src/Youtube.php @@ -363,7 +363,7 @@ public function saveAccessTokenToDB($accessToken) { return DB::table('youtube_access_tokens')->insert([ 'access_token' => json_encode($accessToken), - 'created_at' => (new DateTime())->setTimestamp($accessToken['created']), + 'created_at' => (new \DateTime())->setTimestamp($accessToken['created']), ]); }