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

24 lines
557 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-07-10 13:10:45 +05:30
'principal_xid', 'type', 'description', 'image', 'date_added','is_schedule','delivery_schedule','is_active'
2024-05-31 16:28:50 +05:30
];
protected $guarded = [];
public function Notification()
{
return $this->belongsTo(IamPrincipal::class, 'principal_xid', 'id');
}
}