change transition structure 2

This commit is contained in:
2026-07-10 23:29:36 +03:30
parent 028c5d5938
commit 47a2f8e6bf
7 changed files with 226 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProfitConversion extends Model
{
use HasFactory;
protected $fillable = [
'user_id',
'rial_amount',
'gram_amount',
'unit_price',
'converted_at',
'description',
];
protected $casts = [
'rial_amount' => 'float',
'gram_amount' => 'float',
'unit_price' => 'float',
'converted_at' => 'datetime',
];
}