You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
478 B

<?php
declare(strict_types=1);
namespace authkit2\Events;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
/**
* Event providing a user model as context
*/
abstract class UserEvent
{
use Dispatchable;
use SerializesModels;
/**
* User that this event refers to
*
* @var mixed
*/
public $user;
/**
* Initialize new event
*
* @param mixed $user
*/
public function __construct($user)
{
$this->user = $user;
}
}