Updated models with activity logs
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Traits\LogsActivity;
|
||||
|
||||
class Mnonote extends Model
|
||||
{
|
||||
use LogsActivity;
|
||||
protected $guarded = array('id');
|
||||
public $table = "mno_notes";
|
||||
|
||||
@@ -14,6 +16,6 @@ class Mnonote extends Model
|
||||
}
|
||||
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user