Siopas Inventory PETI for ISTW Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
581 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class m_asset extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'm_assets';
protected $fillable = [
'seri',
'name',
'description',
'warehouse_id',
'date',
'qr_count',
'created_by',
'updated_by',
];
public function warehouse()
{
return $this->belongsTo(m_warehouse::class, 'warehouse_id');
}
}