flexisip-account-manager/flexiapi/app/Events/AccountDeleting.php
Timothée Jaussoin 5ddb669af1 Add accounts management endpoints
Add account email reset endpoint
Update the dependencies
Complete tests
2020-12-07 15:25:34 +01:00

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();
}
}