PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
platform
/
core
/
base
/
src
/
Supports
<?php namespace Botble\Base\Supports; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Arr; use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles; class EmailAbstract extends Mailable { use Queueable, SerializesModels; /** * @var string */ public $content; /** * @var string */ public $subject; /** * @var array */ public $data; /** * Create a new message instance. * * @param string $content * @param string $subject * @param array $data */ public function __construct($content, $subject, $data = []) { $this->content = $content; $this->subject = $subject; $this->data = $data; } /** * Build the message. * * @return EmailAbstract */ public function build() { $inlineCss = new CssToInlineStyles; $fromAddress = setting('email_from_address', config('mail.from.address')); $fromName = setting('email_from_name', config('mail.from.name')); $email = $this ->from($fromAddress, $fromName) ->subject($this->subject) ->html($inlineCss->convert($this->content)); $attachments = Arr::get($this->data, 'attachments'); if (!empty($attachments)) { if (!is_array($attachments)) { $attachments = [$attachments]; } foreach ($attachments as $file) { $email->attach($file); } } if (isset($this->data['cc'])) { $email = $this->cc($this->data['cc']); } if (isset($this->data['bcc'])) { $email = $this->bcc($this->data['bcc']); } return $email; } }
[-] MembershipAuthorization.php
[edit]
[-] SortItemsWithChildrenHelper.php
[edit]
[-] EmailAbstract.php
[edit]
[-] Filter.php
[edit]
[-] Language.php
[edit]
[-] DashboardMenu.php
[edit]
[-] ActionHookEvent.php
[edit]
[-] PclZip.php
[edit]
[-] BaseSeeder.php
[edit]
[-] Action.php
[edit]
[-] MacroableModels.php
[edit]
[+]
..
[-] CustomResourceRegistrar.php
[edit]
[-] Assets.php
[edit]
[-] MetaBox.php
[edit]
[-] Avatar.php
[edit]
[-] Enum.php
[edit]
[-] BreadcrumbsGenerator.php
[edit]
[-] PageTitle.php
[edit]
[-] BreadcrumbsManager.php
[edit]
[-] Editor.php
[edit]
[-] Core.php
[edit]
[-] MountManager.php
[edit]
[-] EmailHandler.php
[edit]
[-] RepositoryHelper.php
[edit]
[-] Gravatar.php
[edit]
[-] SystemManagement.php
[edit]
[-] Helper.php
[edit]