TippingCanoe\Imager\Model\Image::scopeAttached PHP Method

scopeAttached() public method

Modifies the query to only include images attached to an imageable.
public scopeAttached ( Builder $query ) : Builder
$query Illuminate\Database\Eloquent\Builder
return Illuminate\Database\Eloquent\Builder
    public function scopeAttached(Builder $query)
    {
        return $query->whereNotNull('imageable_id')->whereNotNull('imageable_type');
    }