mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Correctly handle error; don't overwrite laravel method
This commit is contained in:
@@ -336,7 +336,7 @@ class Server extends Model
|
||||
*/
|
||||
public function newAuditEvent(string $action, array $metadata = []): AuditLog
|
||||
{
|
||||
return AuditLog::factory($action, $metadata)->fill([
|
||||
return AuditLog::instance($action, $metadata)->fill([
|
||||
'server_id' => $this->id,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user