This commit is contained in:
Dwi Swandhana
2026-02-21 05:12:55 +07:00
parent 1dac4b9e2a
commit 3b61faafbd
10 changed files with 603 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class BioRack extends Model
{
protected $table = 'bio_racks';
protected $guarded = [];
public function cabinet()
{
return $this->belongsTo(BioCabinet::class, 'cabinet_id');
}
public function specimens()
{
return $this->hasMany(BioSpecimen::class, 'rack_id');
}
}