class Manufacturer extends Model
{
    public function collections()
    {
        return $this->hasMany('App\Collection');
    }
    public function colors()
    {
        return $this->hasManyThrough('App\Color', 'App\Collection');
    }
}class Color extends Model
{
    public function manufacturer()
    {
        //
    }
    public function collection()
    {
        return $this->belongsTo('App\Collection');
    }
}