url to path

This commit is contained in:
Dr Masroor Ehsan 2024-12-31 12:13:46 +06:00
parent cdd776b7ec
commit a12585b7f0

View File

@ -75,7 +75,7 @@ public function category(int $category): static
public function url(?string $url = null): static
{
$this->url = $url ?? request()->url();
$this->url = $url ?? request()->path();
return $this;
}
@ -127,7 +127,8 @@ public function log(bool $initDefaults = true): bool
}
}
return DB::table('audit_logs')->insert([
return DB::table('audit_logs')
->insert([
'study_id' => $this->studyId,
'user_id' => $this->userId,
'category' => $this->category,