{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11483","labels_url":"https://api.github.com/repos/laravel/framework/issues/11483/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11483/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11483/events","html_url":"https://github.com/laravel/framework/issues/11483","id":123610581,"number":11483,"title":"Feature request for Broadcast Event conditionally","user":{"login":"pavankumarkatakam","id":6078669,"avatar_url":"https://avatars.githubusercontent.com/u/6078669?v=3","gravatar_id":"","url":"https://api.github.com/users/pavankumarkatakam","html_url":"https://github.com/pavankumarkatakam","followers_url":"https://api.github.com/users/pavankumarkatakam/followers","following_url":"https://api.github.com/users/pavankumarkatakam/following{/other_user}","gists_url":"https://api.github.com/users/pavankumarkatakam/gists{/gist_id}","starred_url":"https://api.github.com/users/pavankumarkatakam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavankumarkatakam/subscriptions","organizations_url":"https://api.github.com/users/pavankumarkatakam/orgs","repos_url":"https://api.github.com/users/pavankumarkatakam/repos","events_url":"https://api.github.com/users/pavankumarkatakam/events{/privacy}","received_events_url":"https://api.github.com/users/pavankumarkatakam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T06:53:29Z","updated_at":"2015-12-23T11:18:51Z","closed_at":"2015-12-23T11:18:51Z","body":"This is feature request for broadcasting events conditionally. If we have the method like `broadcastOnly` in the event class check the method return true or false then depending on the return value push the event broadcast to queue. This requesting function should be like `broadcastOn` and `broadcastWith`.\r\n\r\nuse case: we have a application where user can set the preferred method of sending notifications like email,SMS and of course push notification, in this case we want to check whether the user opted for push notification or not. "}}