Files
services_core/app/Models/TicketMaterial.php
T
2026-08-07 09:16:13 +07:00

14 lines
470 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TicketMaterial extends Model
{
public $timestamps = false;
protected $fillable=['ticket_id','ticket_log_id','technician_material_id','technician_consumable_id','material_name','qty','notes','used_by','created_at'];
protected function casts():array{return ['qty'=>'decimal:2','created_at'=>'datetime'];}
public function user(){return $this->belongsTo(User::class,'used_by');}
}