Skip to content

Commit

Permalink
#420 - updated phpoffice package (#466)
Browse files Browse the repository at this point in the history
* #420 - fix: updated phpoffice package

* #420 - fix: test fixes

* #420 - fix: rollback php version to 8.3.8
  • Loading branch information
kamilpiech97 authored Jul 16, 2024
1 parent a5d1773 commit ace38c4
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 292 deletions.
5 changes: 4 additions & 1 deletion app/Domain/ResumeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public function generate(Resume $resume): string
$this->fillEducation($processor, $resume);
$this->fillProjects($processor, $resume);

return $processor->save();
$path = storage_path("app/resumes/" . now() . ".docx");
$processor->saveAs($path);

return $path;
}

public function getTemplate(): string
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"laravel/telescope": "^5.1.0",
"laravel/tinker": "^2.9",
"maatwebsite/excel": "^3.1.55",
"phpoffice/phpword": "1.1",
"phpoffice/phpword": "1.2",
"sentry/sentry-laravel": "^4.6.1",
"spatie/laravel-google-calendar": "3.8",
"spatie/laravel-model-states": "^2.7.1",
Expand Down
Loading

0 comments on commit ace38c4

Please sign in to comment.