2FAuth/app/Events/TwoFAccountDeleted.php

31 lines
666 B
PHP
Raw Normal View History

<?php
namespace App\Events;
2021-12-02 13:15:53 +01:00
use App\Models\TwoFAccount;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
2022-05-31 23:21:36 +02:00
use Illuminate\Support\Facades\Log;
class TwoFAccountDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* @var \App\Models\TwoFAccount
*/
public $twofaccount;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(TwoFAccount $twofaccount)
{
$this->twofaccount = $twofaccount;
2022-05-31 23:21:36 +02:00
Log::info(sprintf('TwoFAccount #%s deleted', $twofaccount->id));
}
2022-11-22 15:15:52 +01:00
}