mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-20 03:18:07 +00:00
24 lines
571 B
PHP
24 lines
571 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
use App\Account;
|
|
|
|
class AccountDeleting
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
public function __construct(Account $account)
|
|
{
|
|
$account->alias()->delete();
|
|
$account->passwords()->delete();
|
|
$account->nonces()->delete();
|
|
$account->admin()->delete();
|
|
$account->apiKey()->delete();
|
|
$account->emailChanged()->delete();
|
|
}
|
|
}
|