Files
api-extranetwork/app/Models/PropertyProductMapping.php
ExtraNetwork e5c4b6aa13 first commit
2026-05-12 17:04:54 +03:00

39 lines
749 B
PHP

<?php
namespace App\Models;
class PropertyProductMapping extends BaseModel
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'property_product_mapping';
protected $appends = ['parameterArray'];
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $dateFormat = 'U';
protected $guarded = [];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = [];
function getParameterArrayAttribute()
{
$attribute = [];
if (!empty($this->parameter)) {
$attribute = json_decode($this->parameter, 1);
}
return $attribute;
}
}