Files
cheerstothe_season_2.0/app/Models/NotificationDetails.php

24 lines
511 B
PHP
Raw Normal View History

2024-05-31 16:28:50 +05:30
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NotificationDetails extends Model
{
use HasFactory;
protected $table = "notification_details";
protected $fillable = [
'id',
2024-06-06 11:58:07 +05:30
'principal_xid', 'type', 'description', 'image', 'date_added'
2024-05-31 16:28:50 +05:30
];
protected $guarded = [];
public function Notification()
{
return $this->belongsTo(IamPrincipal::class, 'principal_xid', 'id');
}
}