change transition structure 2
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user