mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
27 lines
470 B
PHP
27 lines
470 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class KeyValuePair extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
protected $table = 'key_value_pairs';
|
|
|
|
protected $fillable = [
|
|
'owner_type',
|
|
'owner_id',
|
|
'key',
|
|
'value',
|
|
];
|
|
|
|
public function owner(): MorphTo
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|