Files
cheerstothe_season_2.0/app/Models/NotificationDetails.php
sayliraut 0903478fde change
2024-07-08 19:47:25 +05:30

24 lines
545 B
PHP

<?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',
'principal_xid', 'type', 'description', 'image', 'date_added','is_schedule','delivery_schedule'
];
protected $guarded = [];
public function Notification()
{
return $this->belongsTo(IamPrincipal::class, 'principal_xid', 'id');
}
}