PM_Console/backend/app/Models/Notification.php

26 خطوط
608 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Notification extends Model
{
use SoftDeletes;
protected $fillable = [
'user_id', 'title', 'body', 'type', 'notifiable_type', 'notifiable_id',
'data', 'is_read', 'read_at', 'remind_at', 'dismissed_at', 'archived_at',
];
protected $casts = [
'data' => 'array',
'is_read' => 'boolean',
'read_at' => 'datetime',
'remind_at' => 'datetime',
'dismissed_at' => 'datetime',
'archived_at' => 'datetime',
];
}