Level 61
Have you tried embedding it?
Hi, I'm building a website where has a career page. On that page one user can apply for a single job application by uploading a pdf file. I stored data in this way
$file = $request->cv;
if ($file) {
$file_name = hexdec(uniqid());
$ext = strtolower($file->getClientOriginalExtension());
$file_full_name = $file_name . '.' . $ext;
$upload_path = 'files/';
$upload_path1 = 'backend/files/';
$file_url = $upload_path . $file_full_name;
$success = $file->move($upload_path1, $file_full_name);
}
$job = Applicant::create([
'name' => $request->name,
'contact' => $request->contact,
'email' => $request->email,
'cv' => $file_url,
]);
and it's stored perfectly. I want to preview this uploaded pdf file into admin panel. I tried toinstall this package https://github.com/webVenus928/pdf-viewer-Laravel . but it threw this error [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found
Can anyone tell me how can I preview pdf file into blade?
Please or to participate in this conversation.