Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MessageSetting extends Model
{
use HasFactory;
protected $fillable = [
'message_settingable_id',
'message_settingable_type',
'system_message',
'payment_received',
'star_received',
'local_newsletter',
'general_newsletter',
'personal_chat',
'group_chat',
'chat_unread_delay',
'call_expiry',
];
/**
* Get the parent message_settingable model (user, organization, or bank).
* This is the instance (bank, organization, admin / alternative profile) where the settings are originally applied for.
* one-to-many polymorphic
*/
public function message_settingable()
{
return $this->morphTo();
}
}