2FAuth/app/Events/TwoFAccountDeleted.php

28 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;
public $twofaccount;
/**
* Create a new event instance.
*
2021-12-02 13:15:53 +01:00
* @param \App\Models\TwoFAccount $twofaccount
* @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));
}
}