From 393fe20010d4ddbc4eb49e739000f55d8d7e0b8b Mon Sep 17 00:00:00 2001 From: bananabendera <33282813+bananabendera@users.noreply.github.com> Date: Sat, 17 Dec 2022 23:50:51 +1100 Subject: [PATCH] Fix incorrect invoice creation message (#1109) Creation message now includes the views disk in its path. --- app/Console/Commands/CreateTemplateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CreateTemplateCommand.php b/app/Console/Commands/CreateTemplateCommand.php index 0eef7f215..0cb9ed431 100644 --- a/app/Console/Commands/CreateTemplateCommand.php +++ b/app/Console/Commands/CreateTemplateCommand.php @@ -55,7 +55,7 @@ public function handle() 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")); - $path = resource_path("app/pdf/{$type}/{$templateName}.blade.php"); + $path = resource_path("views/app/pdf/{$type}/{$templateName}.blade.php"); $type = ucfirst($type); $this->info("{$type} Template created successfully at ".$path);