28 lines
561 B
PHP
28 lines
561 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use App\Enums\RecordStatusEnum;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Organism extends BaseModel
|
|
{
|
|
public $timestamps = false;
|
|
use HasFactory;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $fillable = ['name_en', 'weight', 'is_bold', 'organization_id'];
|
|
|
|
public static function boot()
|
|
{
|
|
parent::boot();
|
|
}
|
|
|
|
public function lab(){
|
|
return $this->belongsTo('App\Models\Organization', 'organization_id','id');
|
|
}
|
|
|
|
}
|