2FAuth/app/Events/TwoFAccountDeleted.php
2022-05-31 23:37:26 +02:00

28 lines
666 B
PHP

<?php
namespace App\Events;
use App\Models\TwoFAccount;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class TwoFAccountDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $twofaccount;
/**
* Create a new event instance.
*
* @param \App\Models\TwoFAccount $twofaccount
* @return void
*/
public function __construct(TwoFAccount $twofaccount)
{
$this->twofaccount = $twofaccount;
Log::info(sprintf('TwoFAccount #%s deleted', $twofaccount->id));
}
}