20 lines
382 B
PHP
20 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\PatientTreatment;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Treatment extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['name', 'description', 'cost'];
|
|
|
|
public function patientTreatments()
|
|
{
|
|
return $this->hasMany(PatientTreatment::class);
|
|
}
|
|
}
|