feat: initial project setup with Laravel 12 and Filament v4

This commit is contained in:
SajjadMahmoody
2026-04-03 17:25:17 +03:30
parent eca5d74b36
commit 09ee1cb743
324 changed files with 78304 additions and 23 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,
];
}
}