user roles, bug fixes
This commit is contained in:
@@ -18,4 +18,13 @@ class Mnonote extends Model
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
}
|
||||
public function operator()
|
||||
{
|
||||
return $this->belongsTo(NetworkOperator::class, 'mno_id', 'id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user