41 lines
770 B
PHP
41 lines
770 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Confidence extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'confidence';
|
|
|
|
protected $fillable = [
|
|
'items',
|
|
'confidence',
|
|
'keterangan',
|
|
'lift_ratio',
|
|
'korelasi',
|
|
'itemset',
|
|
'proses_id',
|
|
// 'itemset2_id',
|
|
// 'itemset3_id'
|
|
];
|
|
|
|
public function itemset2()
|
|
{
|
|
return $this->belongsTo(Itemset2::class, 'itemset2_id');
|
|
}
|
|
|
|
public function itemset3()
|
|
{
|
|
return $this->belongsTo(Itemset3::class, 'itemset3_id');
|
|
}
|
|
|
|
public function proses()
|
|
{
|
|
return $this->belongsTo(Proses::class, 'proses_id');
|
|
}
|
|
}
|