Update Fix
This commit is contained in:
22
app/Models/ProductUnit.php
Normal file
22
app/Models/ProductUnit.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user