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

@@ -160,9 +160,18 @@ class TimeEntryAggregateExportRequest extends FormRequest
'string',
'in:true,false',
],
'debug' => [
'string',
'in:true,false',
],
];
}
public function getDebug(): bool
{
return $this->input('debug') === 'true';
}
public function getGroup(): TimeEntryAggregationType
{
return TimeEntryAggregationType::from($this->input('group'));