ea3ab21beb
* Refactor notifications to allow easier plugins * Notification refactoring * Formatting * Move news to NewsService; cleanup of events * More refactoring; added send email out for news item and the template * Formatting * Formatting
21 lines
330 B
PHP
21 lines
330 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\User;
|
|
|
|
/**
|
|
* Event triggered when a user's state changes
|
|
*/
|
|
class UserStateChanged extends BaseEvent
|
|
{
|
|
public $old_state;
|
|
public $user;
|
|
|
|
public function __construct(User $user, $old_state)
|
|
{
|
|
$this->old_state = $old_state;
|
|
$this->user = $user;
|
|
}
|
|
}
|