<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class RequestLogMedicine extends Model
{
    use HasFactory;

    public $fillable = [
        'request_log_id',
        'medicine',
        'price',
        'created_by',
        'updated_by',
        'deleted_by',
    ];

    protected $hidden = [
        'created_at',
        'updated_at',
        'deleted_at',
        'created_by',
        'updated_by',
        'deleted_by',
    ];

    public function benefit(){
        return $this->belongsTo(Benefit::class, 'benefit_id', 'id');
    }
}
