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