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