This commit is contained in:
Muhammad Tamir
2025-11-14 10:59:24 +07:00
parent 85c03cef82
commit b3933b9960
505 changed files with 13811 additions and 2341 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class NotificationPreference extends Model
{
protected $fillable = [
'user_id',
'mail_enabled',
'in_app_enabled',
'notification_template_id',
];
protected $casts = [
'mail_enabled' => 'boolean',
'in_app_enabled' => 'boolean',
];
public function notificationTemplate()
{
return $this->belongsTo(NotificationTemplate::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
}