url to path
This commit is contained in:
parent
cdd776b7ec
commit
a12585b7f0
@ -75,7 +75,7 @@ public function category(int $category): static
|
|||||||
|
|
||||||
public function url(?string $url = null): static
|
public function url(?string $url = null): static
|
||||||
{
|
{
|
||||||
$this->url = $url ?? request()->url();
|
$this->url = $url ?? request()->path();
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -127,17 +127,18 @@ public function log(bool $initDefaults = true): bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return DB::table('audit_logs')->insert([
|
return DB::table('audit_logs')
|
||||||
'study_id' => $this->studyId,
|
->insert([
|
||||||
'user_id' => $this->userId,
|
'study_id' => $this->studyId,
|
||||||
'category' => $this->category,
|
'user_id' => $this->userId,
|
||||||
'activity' => $this->activity,
|
'category' => $this->category,
|
||||||
'orthanc_uuid' => $this->orthancId,
|
'activity' => $this->activity,
|
||||||
'ip_addr' => $this->ipAddr,
|
'orthanc_uuid' => $this->orthancId,
|
||||||
'user_agent' => $this->userAgent,
|
'ip_addr' => $this->ipAddr,
|
||||||
'url' => $this->url,
|
'user_agent' => $this->userAgent,
|
||||||
'notes' => $this->notes,
|
'url' => $this->url,
|
||||||
'created_at' => now(),
|
'notes' => $this->notes,
|
||||||
]);
|
'created_at' => now(),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user