<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class BoxSettings extends Model{
    protected $table = 'box_settings';

    protected $primaryKey = 'id';

    protected $fillable = [
        "slug", 'description', "default_value"
    ];

    public function box(){
        return $this->belongsToMany(BoxSettings::class,'box_box_settings','box_setting_id','idBox')->withPivot("value");
    }
}
