Files
Paymenter-Version-Tracks/app/Models/NotificationPreference.php
Muhammad Tamir b3933b9960 v1.4.0
2025-11-14 10:59:24 +07:00

31 lines
571 B
PHP

<?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);
}
}