mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 12:47:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			836 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			836 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Listeners;
 | |
| 
 | |
| use App\Libraries\MultiDB;
 | |
| use App\Mail\VerifyUser;
 | |
| use Illuminate\Queue\InteractsWithQueue;
 | |
| use Illuminate\Contracts\Queue\ShouldQueue;
 | |
| use Illuminate\Support\Facades\Mail;
 | |
| 
 | |
| class SendVerificationNotification
 | |
| {
 | |
|     /**
 | |
|      * Create the event listener.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function __construct()
 | |
|     {
 | |
|         //
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Handle the event.
 | |
|      *
 | |
|      * @param  object  $event
 | |
|      * @return void
 | |
|      */
 | |
|     public function handle($event)
 | |
|     {//todo handle the change of DB locaiton to Company Token table
 | |
|         /*send confirmation email using $event->user
 | |
|         MultiDB::setDB($event->user->db);
 | |
| 
 | |
|         Mail::to($event->user->email)
 | |
|             //->cc('')
 | |
|             //->bcc('')
 | |
|             ->queue(new VerifyUser($event->user));
 | |
|             */
 | |
|     }
 | |
| }
 |