34 lines
592 B
PHP
34 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Currency extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'country_name',
|
|
'code',
|
|
'rate',
|
|
'symbol',
|
|
'position',
|
|
'status',
|
|
'is_default',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'status' => 'boolean',
|
|
'is_default' => 'boolean',
|
|
'rate' => 'double',
|
|
];
|
|
}
|