<?php

/*
 * Created by Mohamed.
 */


namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class PartnerResource extends BaseResource
{
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'name' => $this->translate('name'),
            'image' => asset('storage/' . $this->image),
            // 'description' => $this->translate('description'),
            'url' => $this->url,
            'type' => $this->type,
            'username' => $this->username,
        ];
    }
}
