public function saveAccessTokenToDB($accessToken)
	{
		$data = array(
			'access_token' => $accessToken,
			'created_at' => \Carbon\Carbon::now(),
		);

		if(\Config::get('laravel-youtube::auth') == true) {
			$data['user_id'] = \Auth::user()->id;
		}

		\DB::table(\Config::get('laravel-youtube::table_name'))->insert($data);
	}
public function saveAccessTokenToDB($accessToken)
	{
		$data = array(
			'access_token' => $accessToken,
			'created_at' => \Carbon\Carbon::now(),
		);

		if(\Config::get('laravel-youtube::auth') == true) {
			$data['user_id'] = \Auth::user()->id;
		}

		\DB::table(\Config::get('laravel-youtube::table_name'))->insert($data);
	}
public function saveAccessTokenToDB ( $ accessToken ) { $ data = array ( 'access_token' => $ accessToken , 'created_at' => \ Carbon \ Carbon :: now ( ) , ) ; if ( \ Config :: get ( 'laravel-youtube::auth' ) == true ) { $ data [ 'user_id' ] = \ Auth :: user ( ) -> id ; } \ DB :: table ( \ Config :: get ( 'laravel-youtube::table_name' ) ) -> insert ( $ data ) ; }
Saves the access token to the database.
@param $accessToken
Saves the access token to the database .