mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Complete POST /accounts admin endpoints Handle expiration in email and phone endpoints Complete documentation Add related tests Bump package version
25 lines
623 B
PHP
25 lines
623 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->activationExpiration()->delete();
|
|
$account->nonces()->delete();
|
|
$account->admin()->delete();
|
|
$account->apiKey()->delete();
|
|
$account->emailChanged()->delete();
|
|
}
|
|
}
|