1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 19:04:43 +00:00
Files
metr/backend/app/Models/Order.php
2022-05-28 22:55:36 +07:00

34 lines
584 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'offer_id',
'user_id',
'price',
'discount',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'price' => 'double',
'discount' => 'double',
];
}