sarga/packages/Webkul/Notification/src/Models/Notification.php

24 lines
491 B
PHP
Raw Normal View History

2021-12-30 13:30:13 +00:00
<?php
namespace Webkul\Notification\Models;
use Webkul\Sales\Models\OrderProxy;
use Illuminate\Database\Eloquent\Model;
use Webkul\Notification\Contracts\Notification as NotificationContract;
class Notification extends Model implements NotificationContract
{
protected $fillable = [
'type',
'read',
'order_id'
];
/**
* Get Order Details.
*/
public function order()
{
return $this->belongsTo(OrderProxy::modelClass());
}
}