Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

+36
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();
}
}