event
Intervention/image
The
event
function dispatches the given
event
to its listeners:
<?php event
(new
UserRegistered
(
$user
));