feat: initialize Dr-Panel project with patient file number support

This commit is contained in:
SajjadMahmoody
2026-05-06 02:18:23 +03:30
parent f8f174690a
commit 8b84d1780f
460 changed files with 113960 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\Models;
use App\Casts\JalaliDatetime;
use Illuminate\Database\Eloquent\Model;
class Medication extends Model
{
protected $fillable = [
'name',
'dosage_form',
'strength',
'quantity',
'timing',
'notes',
'is_default',
'is_active',
];
protected function casts(): array
{
return [
'is_default' => 'boolean',
'is_active' => 'boolean',
'quantity' => 'integer',
'created_at' => JalaliDatetime::class,
'updated_at' => JalaliDatetime::class,
];
}
}