This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -11,4 +11,21 @@ class UserNotification extends BaseModel
'notification_id', 'user_id', 'is_read',
];
public function notification(){
$related = 'App\Model\helpdesk\Notification\Notification';
$id = 'notification_id';
return $this->belongsTo($related,$id);
}
public function users(){
$related = 'App\User';
$id = 'user_id';
return $this->belongsTo($related,$id);
}
// public function delete() {
// //$this->notification()->delete();
// parent::delete();
// }
}