File: /mnt/data/ghayatcom/ghayatcom-api/app/GeneralHealthCondition.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class GeneralHealthCondition extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['id', 'name', 'created_at', 'created_by', 'updated_by', 'deleted_by'];
protected $hidden = ['created_by', 'updated_by', 'deleted_by', 'deleted_at', 'updated_at'];
public function healthConditionPatient() {
return $this->hasMany(GeneralHealthConditionPatient::class, 'type_id', 'id');
}
}