rejuvallife/app/Models/Notification.php
2024-10-25 01:02:11 +05:00

28 lines
564 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Notification extends Model
{
use HasFactory, SoftDeletes;
// The attributes that are mass assignable.
protected $fillable = [
'status',
'cart_id',
'patient_id',
'message',
'description',
];
// Define the relationship with the Cart model
public function cart()
{
return $this->belongsTo(Cart::class);
}
}