mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 12:37:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			760 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			760 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Mail;
 | |
| 
 | |
| use Illuminate\Bus\Queueable;
 | |
| use Illuminate\Mail\Mailable;
 | |
| use Illuminate\Queue\SerializesModels;
 | |
| 
 | |
| class MigrationFailed extends Mailable
 | |
| {
 | |
|     // use Queueable, SerializesModels;
 | |
| 
 | |
|     public $exception;
 | |
|     public $content;
 | |
| 
 | |
|     /**
 | |
|      * Create a new message instance.
 | |
|      *
 | |
|      * @param $content
 | |
|      * @param $exception
 | |
|      */
 | |
|     public function __construct($exception, $content = null)
 | |
|     {
 | |
|         $this->exception = $exception;
 | |
|         $this->content = $content;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Build the message.
 | |
|      *
 | |
|      * @return $this
 | |
|      */
 | |
|     public function build()
 | |
|     {
 | |
|         return $this->from(config('mail.from.address'), config('mail.from.name'))
 | |
|                     ->view('email.migration.failed');
 | |
|     }
 | |
| }
 |