Add debug flag to pdf export

This commit is contained in:
Constantin Graf
2024-12-03 16:57:14 +01:00
committed by Constantin Graf
parent 32bce2f749
commit a4f3e014d9
5 changed files with 38 additions and 4 deletions

View File

@@ -129,9 +129,18 @@ class TimeEntryIndexExportRequest extends TimeEntryIndexRequest
'string',
'in:true,false',
],
'debug' => [
'string',
'in:true,false',
],
];
}
public function getDebug(): bool
{
return $this->input('debug', 'false') === 'true';
}
public function getStart(): Carbon
{
$start = Carbon::createFromFormat('Y-m-d\TH:i:s\Z', $this->input('start'), 'UTC');