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,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,
|
'study_id' => $this->studyId,
|
||||||
'user_id' => $this->userId,
|
'user_id' => $this->userId,
|
||||||
'category' => $this->category,
|
'category' => $this->category,
|
||||||
|
Loading…
Reference in New Issue
Block a user