freescout/freescout-dist/app/Events/UserDeleted.php

25 lines
420 B
PHP
Raw Permalink Normal View History

2023-12-22 19:40:32 +00:00
<?php
namespace App\Events;
use App\User;
class UserDeleted
{
public $by_user;
public $deleted_user;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(User $deleted_user, User $by_user)
{
$this->by_user = $by_user;
$this->deleted_user = $deleted_user;
\Eventy::action('user.deleted', $deleted_user, $by_user);
}
}