Add system logs to first load

This commit is contained in:
David Bomba 2021-03-30 09:32:33 +11:00
parent 878f00b375
commit 96c191daf0
2 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,7 @@ class BaseController extends Controller
'company.vendors.contacts.company',
'company.vendors.documents',
'company.webhooks',
'company.system_logs',
];
private $mini_load = [

View File

@ -391,7 +391,7 @@ class Company extends BaseModel
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()