0
votes

I installed a PayPal package sirmklive/paypal then removed the package from composer.json, did composer update and it was removed. I installed PayPal php sdk, works on my localhost then when I pulled updates to my server I got this error:

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'Srmklive\PayPal\Providers\PayPalServiceProvider' not found

3
You have to install the packages on your server as well.Jerodev
I use git to update my server so basically it's meant to just work....lucasbeta

3 Answers

0
votes

Have you removed it from config/app.php file which you have added after inserted the package???

And then run the command

php artisan config:ca

0
votes

Thanks all. I got it fixed...

Ran: php artisan optimize php artisan config:cache

Did composer du on server too but still didn't work... I had to navigate to /bootstrap/cache then deleted the cache files there, worked immediately.

0
votes

Here is how I solved this.

Change permission settings for /bootstrap/cache Deleted the existing cache files and everything started working.