invoiceninja/app/Listeners/SendVerificationNotification.php
2018-10-24 14:50:15 +11:00

34 lines
561 B
PHP

<?php
namespace App\Listeners;
use App\Libraries\MultiDB;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class SendVerificationNotification
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param object $event
* @return void
*/
public function handle($event)
{
//send confirmation email using $event->user
MultiDB::setDB($event->user->db);
}
}