23 lines
354 B
PHP
23 lines
354 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ProductUnit extends Model
|
|
{
|
|
protected $table = 'produk_unit';
|
|
|
|
protected $fillable = [
|
|
'produk_id',
|
|
'nama_unit',
|
|
'multiplier',
|
|
'is_base',
|
|
];
|
|
|
|
public function produk()
|
|
{
|
|
return $this->belongsTo(Produk::class);
|
|
}
|
|
}
|