I need some help. I'm integrating getstream.io into my laravel application (v5.1), I'm stuck with this error:
cURL error 60: SSL certificate problem: unable to get local issuer certificate
This is my code:
use GetStream\Stream\Client;
public function index()
{
$client = new Client('rrzp7mz8htgn', '8cgs94jg2z5da2h4q2an8q6q5vktrp8y8w7rsft3zndf63c8y9n59g2h2qvtdhqq');
$ericFeed = $client->feed('user', 'eric');
$data = [
"actor"=>"eric",
"verb"=>"like",
"object"=>"3",
"tweet"=>"Hello world"
];
$ericFeed->addActivity($data);
}
I followed the instructions below from packalyst
-
Add the get-stream into your composer:
"require": { "get-stream/stream-laravel": "~2.1" },
-
then run composer update
-
I also added the provider and the aliases
'providers' => array( 'GetStream\StreamLaravel\StreamLaravelServiceProvider', ... ),
'aliases' => array( 'FeedManager' => 'GetStream\StreamLaravel\Facades\FeedManager', ... ),
-
I run:
php artisan vendor:publish --provider="GetStream\StreamLaravel\StreamLaravelServiceProvider"
-
I emailed already getstream.io, but no response yet. I'll be updated this post when I received some answers from them.
I also checked this post from laracast, but there's no answer. http://ift.tt/1TaqB7j
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire