%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/SubscriptionTransformer.php

<?php

namespace App\Transformers;


use App\Models\Subscription;

class SubscriptionTransformer extends BaseTransformer
{
    public function transform(Subscription $subscription)
    {
        $data = $this->transformColumns($subscription);

        return $data;
    }


    protected function getTransformableColumns()
    {
        return [
            'id'         => 'id',
            'firstname'  => 'firstname',
            'lastname'   => 'lastname',
            'email'      => 'email',
            'is_active'  => 'is_active',
            'created_at' => 'created_at',
            'updated_at' => 'updated_at',
        ];
    }

}

Zerion Mini Shell 1.0