update
This commit is contained in:
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class BioCabinet extends Model
|
||||
{
|
||||
protected $table = 'bio_cabinets';
|
||||
protected $guarded = [];
|
||||
|
||||
public function racks()
|
||||
{
|
||||
return $this->hasMany(BioRack::class, 'cabinet_id');
|
||||
}
|
||||
|
||||
public function specimens()
|
||||
{
|
||||
return $this->hasMany(BioSpecimen::class, 'cabinet_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user