Merge branch 'dillon/34.3-jenkins-vapor' into vapor/development

This commit is contained in:
Dillon Ngo
2024-05-16 21:23:54 +08:00
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Validator;
use Maatwebsite\Excel\Facades\Excel;
use PhpOffice\PhpSpreadsheet\Shared\Date;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Log;
class ImportPermitsReminderController
{
@@ -25,6 +26,8 @@ class ImportPermitsReminderController
$object = new DocumentObject('', $request->input('files'), '', ApprovalStatus::APPROVED, 'imports');
$file = json_decode($object->getFiles()[0])->file_info->original->file;
Log::info('ImportPermitsReminderController file' . $file);
$filesystemDriver = Storage::getDefaultDriver();
if($filesystemDriver === 's3'){
$file = Storage::disk('s3')->path('documents/' . $file);