The trait MallardDuck\DynamicEcho\...seDynamicChannelFormula requires some properties which are not provided by App\Events\ConsoleLogEvent: $channelAuthName, $eventChannelIdentifierBindingCallback, $channelType
Loading history...
24
25
public int $userId;
26
27
/**
28
* A message text string for the console log notification.
29
*
30
* @var string
31
*/
32
public string $message;
33
34
public function __construct(string $message)
35
{
36
/** @var App\Models\User $user */
37
$user = Auth::user();
38
$this->userId = $user->id;
39
$this->message = $message;
40
}
41
42
public static function getChannelParametersClassname(): string
43
{
44
return PrivateUserChannelParameters::class;
45
}
46
47
/**
48
* Get the JS callback for this event.
49
*
50
* In this case, we're just shoving a message into console.log.
51
*
52
* @return string
53
*/
54
public static function getEventJSCallback(): string