Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
857d3004eb
commit
88f3df2180
@@ -11,19 +11,23 @@ class UserNotification extends BaseModel
|
||||
|
||||
'notification_id', 'user_id', 'is_read',
|
||||
];
|
||||
|
||||
public function notification(){
|
||||
|
||||
public function notification()
|
||||
{
|
||||
$related = 'App\Model\helpdesk\Notification\Notification';
|
||||
$id = 'notification_id';
|
||||
return $this->belongsTo($related,$id);
|
||||
|
||||
return $this->belongsTo($related, $id);
|
||||
}
|
||||
|
||||
public function users(){
|
||||
|
||||
public function users()
|
||||
{
|
||||
$related = 'App\User';
|
||||
$id = 'user_id';
|
||||
return $this->belongsTo($related,$id);
|
||||
|
||||
return $this->belongsTo($related, $id);
|
||||
}
|
||||
|
||||
|
||||
// public function delete() {
|
||||
// //$this->notification()->delete();
|
||||
// parent::delete();
|
||||
|
Reference in New Issue
Block a user