mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 18:59:28 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			970 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			970 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Mail;
 | |
| 
 | |
| use App\Models\Company;
 | |
| use Illuminate\Mail\Mailable;
 | |
| 
 | |
| class MigrationFailed extends Mailable
 | |
| {
 | |
|     public $exception;
 | |
| 
 | |
|     public $content;
 | |
| 
 | |
|     public $company;
 | |
| 
 | |
|     public $is_system = false;
 | |
| 
 | |
|     /**
 | |
|      * Create a new message instance.
 | |
|      *
 | |
|      * @param $content
 | |
|      * @param $exception
 | |
|      */
 | |
|     public function __construct($exception, Company $company, $content = null)
 | |
|     {
 | |
|         $this->exception = $exception;
 | |
|         $this->content = $content;
 | |
|         $this->company = $company;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Build the message.
 | |
|      *
 | |
|      * @return $this
 | |
|      */
 | |
|     public function build()
 | |
|     {
 | |
|         return $this
 | |
|             ->from(config('mail.from.address'), config('mail.from.name'))
 | |
|             ->view('email.migration.failed', [
 | |
|                 'logo' => $this->company->present()->logo(),
 | |
|                 'settings' => $this->company->settings,
 | |
|                 'is_system' => $this->is_system,
 | |
|             ]);
 | |
|     }
 | |
| }
 |