{"action":"created","issue":{"url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/2","repository_url":"https://api.github.com/repos/vinkla/laravel-pusher","labels_url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/2/comments","events_url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/2/events","html_url":"https://github.com/vinkla/laravel-pusher/issues/2","id":57689629,"number":2,"title":"Error Using the Facade","user":{"login":"vinkla","id":499192,"avatar_url":"https://avatars2.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"labels":[{"id":175072880,"url":"https://api.github.com/repos/vinkla/laravel-pusher/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"vinkla","id":499192,"avatar_url":"https://avatars2.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"assignees":[{"login":"vinkla","id":499192,"avatar_url":"https://avatars2.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false}],"milestone":null,"comments":43,"created_at":"2015-02-14T10:58:41Z","updated_at":"2017-07-10T16:25:46Z","closed_at":null,"body":"The error below has been reported by @alexandredes and @mottihoresh. This error occurs when using the Facade. As I've learned, using dependency injection it works.\n\n``` php\ncall_user_func_array() expects parameter 1 to be a valid callback\n```\n\nI've tried this in my local setup, using Homestead, with both the Facade and dependency injection without any problems. The events gets registered in the console at http://pusher.com. Example code below.\n\n``` php\n<?php namespace App\\Http\\Controllers;\n\nuse Vinkla\\Pusher\\Facades\\Pusher;\n\nclass PushController extends Controller {\n\n    public function index()\n    {\n        dd(Pusher::trigger('my-channel', 'my-event', ['message' => 'A']));\n    }\n\n}\n```\n\n![unnamed](https://cloud.githubusercontent.com/assets/499192/6199405/2a4b724a-b442-11e4-9ba2-e683e6fd59ed.png)\n\nIf someone else experience this, please report it here. If you have a solution, please share it!\n"},"comment":{"url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/comments/314159155","html_url":"https://github.com/vinkla/laravel-pusher/issues/2#issuecomment-314159155","issue_url":"https://api.github.com/repos/vinkla/laravel-pusher/issues/2","id":314159155,"user":{"login":"vinkla","id":499192,"avatar_url":"https://avatars2.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T16:25:46Z","updated_at":"2017-07-10T16:25:46Z","body":"@luismfonseca great! I'll release a new version of this package with the Laravel 5.5 support release. "}}
{"actor":{"display_login":"vinkla"}}