mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Fix: PDF Template command (#272)
* Fix `make:template` command * Fix issue related to Vite assets * Reformat code --------- Co-authored-by: Steven Rombauts <steven@kotuha.be>
This commit is contained in:
committed by
GitHub
parent
1804481fc6
commit
c617f7d169
@@ -50,8 +50,7 @@ class CreateTemplateCommand extends Command
|
||||
}
|
||||
|
||||
Storage::disk('views')->copy("/app/pdf/{$type}/{$type}1.blade.php", "/app/pdf/{$type}/{$templateName}.blade.php");
|
||||
copy(public_path("/build/img/PDF/{$type}1.png"), public_path("/build/img/PDF/{$templateName}.png"));
|
||||
copy(resource_path("/static/img/PDF/{$type}1.png"), resource_path("/static/img/PDF/{$templateName}.png"));
|
||||
copy(resource_path("static/img/PDF/{$type}1.png"), resource_path("static/img/PDF/{$templateName}.png"));
|
||||
|
||||
$path = resource_path("views/app/pdf/{$type}/{$templateName}.blade.php");
|
||||
$type = ucfirst($type);
|
||||
|
||||
Reference in New Issue
Block a user