为什么我总是得到“PubnubException”?

I trying to build a server using laravel and pubnub, but the page always show a blank page, and after i look at the response it seems there is something wrong on pubnub.php (http response : 500)

and after I open dist/pubnub.php, it always said:

"PubnubException in Pubnub.php line 93: Missing required $subscribe_key param"

and after some searching, I found that I need to get a pub_key and sub_key, now for the question, what should I do to fix this error? how to init the pubnub? and of course I have search something about this but all of them still lead me to a dead end.

Register at pubnub.com, get your keys and use them when init:

This is the format:

$pubnub = new Pubnub($publish_key, $subscribe_key, $secret_key)

For more details: https://www.pubnub.com/docs/php/pubnub-php-sdk#init