mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 10:14:36 -04:00
Add system logs to first load
This commit is contained in:
parent
878f00b375
commit
96c191daf0
@ -98,6 +98,7 @@ class BaseController extends Controller
|
|||||||
'company.vendors.contacts.company',
|
'company.vendors.contacts.company',
|
||||||
'company.vendors.documents',
|
'company.vendors.documents',
|
||||||
'company.webhooks',
|
'company.webhooks',
|
||||||
|
'company.system_logs',
|
||||||
];
|
];
|
||||||
|
|
||||||
private $mini_load = [
|
private $mini_load = [
|
||||||
|
@ -391,7 +391,7 @@ class Company extends BaseModel
|
|||||||
|
|
||||||
public function system_logs()
|
public function system_logs()
|
||||||
{
|
{
|
||||||
return $this->hasMany(SystemLog::class)->orderBy('id', 'DESC')->take(50);
|
return $this->hasMany(SystemLog::class)->orderBy('id', 'DESC')->take(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function system_log_relation()
|
public function system_log_relation()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user