Files
exchange-2.0/app/Models/VoucherEntityMapping.php
2023-07-17 21:29:19 +08:00

24 lines
456 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class VoucherEntityMapping extends AbstractModel
{
use SoftDeletes;
protected $table = 'voucher_entity_mappings';
protected $dates = ['deleted_at'];
/**
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public function owner(): morphTo
{
return $this->morphTo();
}
}