We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80771f5 commit 9472d54Copy full SHA for 9472d54
src/Illuminate/Foundation/helpers.php
@@ -237,7 +237,7 @@ function broadcast($event = null)
237
function broadcast_if($boolean, $event = null)
238
{
239
if ($boolean) {
240
- return app(BroadcastFactory::class)->event($event);
+ return app(BroadcastFactory::class)->event(value($event));
241
} else {
242
return new FakePendingBroadcast;
243
}
@@ -255,7 +255,7 @@ function broadcast_if($boolean, $event = null)
255
function broadcast_unless($boolean, $event = null)
256
257
if (! $boolean) {
258
259
260
261
0 commit comments