barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.66k stars 966 forks source link

ReflectionException in Container.php line 734: Class dompdf does not exist on Laravel 5.2 #232

Closed Krisnasw closed 4 years ago

Krisnasw commented 8 years ago

My Composer.json

"require": { "php": ">=5.5.9", "laravel/framework": "5.2.", "uxweb/sweet-alert": "~1.1", "laravelcollective/html": "5.2.", "barryvdh/laravel-debugbar": "^2.2", "barryvdh/laravel-dompdf": "0.6.*", "gloudemans/shoppingcart": "dev-master" },

What's wrong ?

89gsc commented 8 years ago

Also got this :(

EDIT:

Ok I got round this issue by, (has to stop and think... kinda forgot) so I think I just re-ran composer update then ran "artisan clear-compiled" then ran "artisan optimize" then "php artisan vendor:publish" and make sure if like me you work remotely and not locally that you upload the folders in Vendor:

Then it worked for me.

GregKeaney commented 7 years ago

Ugh. I have tried all of the above but still get a reflection error.

ReflectionException in Container.php line 741: Class dompdf does not exist

Is there anyway to further debug the issue?

Thanks!

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.