LARAVEL-PDF-VIEWER icon indicating copy to clipboard operation
LARAVEL-PDF-VIEWER copied to clipboard

can't install on laravel 5.4

Open Debugo79 opened this issue 7 years ago • 23 comments

I tried to install the package and first 2 step are ok: composer require goodnesskay/laravelpdfviewer (on cmd) Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider::class, (added to providers)

but last one php artisan vendor:publish --provider="Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider" throws this error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found

Debugo79 avatar Jun 29 '17 06:06 Debugo79

same issue... pls reply

php-wmt-sujal avatar Jul 25 '17 13:07 php-wmt-sujal

private reply to me was: ASAP... no news since then... But I know there's some problem between these JS plugins and the final print (due to resizing), so if these plugin is affected by this problem it's unusable for me, but maybe is possible to patch it, i still can't try that...

Debugo79 avatar Jul 25 '17 15:07 Debugo79

I am getting the same issue with the package.

In ProviderRepository.php line 208: Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found

musamamasood avatar Feb 15 '18 22:02 musamamasood

I am also getting the same issue with the package. In ProviderRepository.php line 208: Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found please reaply

al-hassan-cse avatar Feb 25 '18 09:02 al-hassan-cse

Not laraview folder create my project root

Why not you reaply...............

al-hassan-cse avatar Feb 25 '18 09:02 al-hassan-cse

Can't install on 5.5. Same error: In ProviderRepository.php line 208: Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found

Dustin013 avatar Feb 28 '18 01:02 Dustin013

Same problem, here with Laravel 5.6.12. Anyone solved this issue?

nicolapulvirenti avatar Mar 16 '18 10:03 nicolapulvirenti

Guys same problem with laravel 5.6 any idea what is the problem here

Theodory avatar Mar 23 '18 14:03 Theodory

same problem with me laravel 5.5

djoudi avatar Mar 26 '18 20:03 djoudi

I think we have to use Response()->file($filepath,$headers)

From the documentation so as to force document to open on the browser and it is working perfectly fine.

Theodory avatar Mar 26 '18 22:03 Theodory

@Theodory where we put this : Response()->file($filepath,$headers)

djoudi avatar Mar 28 '18 07:03 djoudi

@djoudi Read Laravel documentation about Response you will find Files stuffs

Theodory avatar Mar 28 '18 08:03 Theodory

@djoudi Also you can use the simple solution

Use inside href put you file path when someone click that document will open on the browser.

Theodory avatar Mar 28 '18 08:03 Theodory

@djoudi I mean use anchor tags and inside href put file path

Theodory avatar Mar 28 '18 08:03 Theodory

same problem here.. tried to debug and gave up.. the ServiceProvider just copies vendor\Goodnesskay\laravelpdfviewer\laraview into the public directory of your project, then its not needed anyway.. so i did that manually, removed app.php provider registration and works fine for me.

ospevack avatar Mar 28 '18 17:03 ospevack

hello im newbie learning this, im not basically programming, i have a question, where im put this in my html file. thank you

**Simple!!! After installations and configurations have been carried out successfully, add the code below to your html file

{{ asset('/laraview/#../folder-name/the-pdf-file.pdf') }}**

asepakung avatar Apr 12 '18 10:04 asepakung

I am getting the same issue with the package.

In ProviderRepository.php line 208: Class 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' not found

swatidupare avatar Jul 26 '18 13:07 swatidupare

I got the solution.. just remove 'Goodnesskay\LaravelPdfViewer\LaravelPdfViewerServiceProvider' from config/app.php

It works..

swatidupare avatar Jul 27 '18 06:07 swatidupare

is this package working with laravel 5.7+ ?

tornadofay avatar Jan 26 '19 08:01 tornadofay

same problems

anugrahdputra avatar Sep 02 '19 07:09 anugrahdputra

same problem with Laravel 8

yamlakkassahun avatar Nov 11 '20 13:11 yamlakkassahun

same problem with Laravel 8

vexa256 avatar Apr 06 '21 17:04 vexa256

Hey everyone 👋🏻

I ran into this issue myself and it's to do with the way that the composer.json file is constructed. I have made a fork of the project and resolved this issue in my Stable v1.0.1 version. You can view it here: https://github.com/davcpas1234/laravel-pdf-viewer

davcpas1234 avatar May 31 '21 12:05 davcpas1234