2021-11-30 17:34:35 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
2021-12-02 13:15:53 +01:00
|
|
|
use App\Models\TwoFAccount;
|
2021-11-30 17:34:35 +01:00
|
|
|
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;
|
2021-11-30 17:34:35 +01:00
|
|
|
|
|
|
|
class TwoFAccountDeleted
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
|
2022-08-26 15:57:18 +02:00
|
|
|
/**
|
|
|
|
* @var \App\Models\TwoFAccount
|
|
|
|
*/
|
2021-11-30 17:34:35 +01:00
|
|
|
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));
|
2021-11-30 17:34:35 +01:00
|
|
|
}
|
2022-11-22 15:15:52 +01:00
|
|
|
}
|