<?php

namespace App\Http\Transformers\Front;

use App\Models\User;
use League\Fractal\TransformerAbstract;

class MarketerTransformer extends TransformerAbstract
{


    public function transform(User $user)
    {
        $array = [
            'id' => (int) $user->id,
            'img' => $user->getFirstMediaUrl('profile'),
            'name' => (string) $user->name,
        ];
        return $array;
    }


}


?>
