<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class BoxProduct extends Model
{
    protected $table = 'box_products';

    protected $primaryKey = 'id';

    protected $fillable = [
        'box_id','name','description','default_price'
    ];

    protected $with = ["boxProductVariants"];

    public function boxProductVariants(){
        return $this->hasMany("App\BoxProductVariant","box_product_id");
    }
}
