Performance enhancements for system view
This commit is contained in:
@@ -44,6 +44,13 @@ class System extends Model
|
||||
return $this->hasMany(SystemLog::class);
|
||||
}
|
||||
|
||||
public function logs_recent()
|
||||
{
|
||||
return $this->hasMany(SystemLog::class)
|
||||
->orderby('created_at','DESC')
|
||||
->limit(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Session Passwords for system
|
||||
*
|
||||
|
Reference in New Issue
Block a user