28 lines
564 B
PHP
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);
|
|
}
|
|
}
|