<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ProductAttribute extends Model
{
protected $guarded = ['id','deleted_at','created_at','updated_at'];
public function attribute(){
return $this->belongsTo( Attribute::class )->with('attributeType');
}
public function product(){
return $this->belongsTo( Product::class );
}
}