feat: initial project setup with Laravel 12 and Filament v4
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Casts\JalaliDatetime;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PatientIllness extends Model
|
||||
{
|
||||
protected $table = 'patient_illness';
|
||||
|
||||
protected $fillable = [
|
||||
'illness',
|
||||
'row_no',
|
||||
'priority',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'row_no' => 'integer',
|
||||
'priority' => 'integer',
|
||||
'created_at' => JalaliDatetime::class,
|
||||
'updated_at' => JalaliDatetime::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user