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.
 
 
 
 
 
 

30 lines
608 B

<?php
namespace App\Models;
use App\Traits\UUID;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class m_asset extends Model
{
use HasFactory, SoftDeletes, UUID;
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');
}
}