File "UserNotification.php"
Full Path: /home/trinadezambia/public_html/admin_panel/app/Models/UserNotification.php
File size: 724 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserNotification extends Model
{
use HasFactory;
protected $fillable = ['notification_id', 'user_id'];
public function notification()
{
return $this->belongsTo(Notification::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
// public function getCreatedAtAttribute()
// {
// return $this->formatDateValue($this->getRawOriginal('created_at'));
// }
// public function getUpdatedAtAttribute()
// {
// return $this->formatDateValue($this->getRawOriginal('updated_at'));
// }
}