Laravel 11, Vuexy Admin 10.3, by admin@koneko.mx

This commit is contained in:
2025-01-25 04:23:40 -06:00
parent c3045b43b1
commit 64d505910f
1283 changed files with 140198 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace Modules\Admin\App\Models;
use Illuminate\Database\Eloquent\Model;
class ContactableItem extends Model
{
protected $table = 'contactable_items';
protected $fillable = [
'contactable_id',
'contactable_type',
'type',
'data_contact',
'is_preferred',
'preference_level',
];
/**
* Casts for the model attributes.
*/
protected $casts = [
'is_preferred' => 'boolean',
'preference_level' => 'integer',
];
/**
* Polymorphic relationship to the parent model.
*/
public function contactable()
{
return $this->morphTo();
}
}