mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
28 lines
418 B
PHP
28 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|
|
|
|
|
class ModelAttribute extends Model
|
|
{
|
|
protected $table = 'model_attributes';
|
|
|
|
protected $fillable = [
|
|
"name",
|
|
"value"
|
|
];
|
|
|
|
protected $casts = [
|
|
"value" => "array"
|
|
];
|
|
|
|
public function owner(): morphTo
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
|
|
}
|