Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/medad.corals.io/Corals/modules/Medad/Notifications/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/medad.corals.io/Corals/modules/Medad/Notifications/AddCompanyRelationNotification.php
<?php

namespace Corals\Modules\Medad\Notifications;

use Corals\User\Communication\Classes\CoralsBaseNotification;

class AddCompanyRelationNotification extends CoralsBaseNotification
{
    /**
     * @return mixed
     */
    public function getNotifiables()
    {
        return $this->data['secondCompany']->admins ?? [];
    }

    public function getNotificationMessageParameters($notifiable, $channel)
    {
        $addedCompany = $this->data['secondCompany'];
        $company = $this->data['company'];

        return [
            'secondCompany_name' => $addedCompany->present('name'),
            'secondCompany_code' => $addedCompany->present('code'),
            'secondCompany_phoneNumber' => $addedCompany->present('phone_number'),
            'secondCompany_email' => $addedCompany->present('email'),
            'secondCompany_website' => $addedCompany->present('website'),

            'company_name' => $company->present('name'),
            'company_code' => $company->present('code'),
            'company_phoneNumber' => $company->present('phone_number'),
            'company_email' => $company->present('email'),
            'company_website' => $company->present('website'),
        ];
    }


    public static function getNotificationMessageParametersDescriptions()
    {
        return [
            'secondCompany_name' => trans('Medad::attributes.notification.secondCompany_name'),
            'secondCompany_code' => trans('Medad::attributes.notification.secondCompany_code'),
            'secondCompany_phoneNumber' => trans('Medad::attributes.notification.secondCompany_phoneNumber'),
            'secondCompany_email' => trans('Medad::attributes.notification.secondCompany_email'),
            'secondCompany_website' => trans('Medad::attributes.notification.secondCompany_website'),

            'company_name' => trans('Medad::attributes.notification.company_name'),
            'company_code' => trans('Medad::attributes.notification.company_code'),
            'company_phoneNumber' => trans('Medad::attributes.notification.company_phoneNumber'),
            'company_email' => trans('Medad::attributes.notification.company_email'),
            'company_website' => trans('Medad::attributes.notification.company_website'),
        ];
    }
}

Spamworldpro Mini