<?php

namespace App\Http\Transformers;

use App\Models\Collections\Asset;

class AssetTransformer extends CollectionsTransformer
{

    /**
     * Assets are native to LAKE, not CITI.
     *
     * @var boolean
     */
    public $citiObject = false;


    /**
     * List of resources possible to include
     *
     * @var array
     */
    protected $availableIncludes = [
        'categories',
        'artworks',
    ];


    /**
     * Include categories.
     *
     * @param  \App\Models\Collections\Asset  $asset
     * @return League\Fractal\ItemResource
     */
    public function includeCategories(Asset $asset)
    {
        return $this->collection($asset->categories, new CollectionsTransformer, false);
    }


    /**
     * Include artworks.
     *
     * @param  \App\Models\Collections\Asset  $asset
     * @return League\Fractal\ItemResource
     */
    public function includeArtworks(Asset $asset)
    {
        return $this->collection($asset->artworks, new ArtworkTransformer, false);
    }

}

<?php

namespace App\Http\Transformers;

use App\Models\Collections\Asset;

class AssetTransformer extends CollectionsTransformer
{

    /**
     * Assets are native to LAKE, not CITI.
     *
     * @var boolean
     */
    public $citiObject = false;

}

Remove `categories` and `artworks` includes from assets
Remove `categories` and `artworks` includes from assets

Not being used. The artworks include is lossy.
