checking dd in ocr
This commit is contained in:
@@ -286,20 +286,22 @@ class OcrValidationResource extends Resource
|
|||||||
//$templatePath = storage_path('app/private/uploads/StickerTemplateOcr/Single.pdf');
|
//$templatePath = storage_path('app/private/uploads/StickerTemplateOcr/Single.pdf');
|
||||||
$templatePath = storage_path('app/private/uploads/OcrGrNumber/' . $grNumber . '.pdf');
|
$templatePath = storage_path('app/private/uploads/OcrGrNumber/' . $grNumber . '.pdf');
|
||||||
|
|
||||||
// dd(
|
dd([
|
||||||
// $templatePath,
|
'grNumber' => $grNumber,
|
||||||
// file_exists($templatePath),
|
'trimmed_grNumber' => trim($grNumber),
|
||||||
// scandir(storage_path("app/private/uploads/"))
|
'templatePath' => storage_path('app/private/uploads/OcrGRNumber/' . trim($grNumber) . '.pdf'),
|
||||||
// );
|
'file_exists' => file_exists(storage_path('app/private/uploads/OcrGRNumber/' . trim($grNumber) . '.pdf')),
|
||||||
|
'directory_files' => scandir(storage_path('app/private/uploads/OcrGRNumber/')),
|
||||||
|
]);
|
||||||
|
|
||||||
// if(!file_exists($templatePath))
|
if(!file_exists($templatePath))
|
||||||
// {
|
{
|
||||||
// Notification::make()
|
Notification::make()
|
||||||
// ->title("Template PDF not found for the Gr Number $grNumber.")
|
->title("Template PDF not found for the Gr Number $grNumber.")
|
||||||
// ->danger()
|
->danger()
|
||||||
// ->send();
|
->send();
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
$outputPath = storage_path('app/private/uploads/StickerTemplateOcr/single_filled.pdf');
|
$outputPath = storage_path('app/private/uploads/StickerTemplateOcr/single_filled.pdf');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user