%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Transformers/
Upload File :
Create Path :
Current File : /var/www/html/news/app/Transformers/NotificationTransformer.php

<?php

namespace App\Transformers;


use App\Models\Notification;

class NotificationTransformer extends BaseTransformer
{

    public function transform(Notification $notification)
    {
        $data = $this->transformColumns($notification);

        return $data;
    }


    protected function getTransformableColumns()
    {
        return [
            'id'                     => 'id',
            'code'                   => 'code',
            'subject'                => 'subject',
            'greeting'               => 'greeting',
            'body'                   => 'body',
            'thank_you'              => 'thank_you',
            'send_notification_flag' => 'send_notification_flag',
            'created_at'             => 'created_at',
            'updated_at'             => 'updated_at'
        ];
    }

}

Zerion Mini Shell 1.0