mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	add mail sender crud
This commit is contained in:
		
							
								
								
									
										30
									
								
								app/Http/Resources/MailSenderResource.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/Http/Resources/MailSenderResource.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Crater\Http\Resources; | ||||
|  | ||||
| use Illuminate\Http\Resources\Json\JsonResource; | ||||
|  | ||||
| class MailSenderResource extends JsonResource | ||||
| { | ||||
|     /** | ||||
|      * Transform the resource into an array. | ||||
|      * | ||||
|      * @param  \Illuminate\Http\Request  $request | ||||
|      * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable | ||||
|      */ | ||||
|     public function toArray($request) | ||||
|     { | ||||
|         return [ | ||||
|             'id' => $this->id, | ||||
|             'name' => $this->name, | ||||
|             'driver' => $this->driver, | ||||
|             'is_default' => $this->is_default, | ||||
|             'bcc' => $this->bcc, | ||||
|             'cc' => $this->cc, | ||||
|             'from_address' => $this->from_address, | ||||
|             'from_name' => $this->from_name, | ||||
|             'company_id' => $this->company_id, | ||||
|             'settings' => $this->settings | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user