2

I installed this Cartalyst Stripe package for laravel which was nothing but trouble for me.. I just couldn't get it working and now I decided to remove it completely. So, I remove the line that requires this package in composer.json. I removed the line from confing/app.php from the providers & aliases array. I also removed all references of that Cartalyst package from my code.. Somehow, after I run composer update I still get this error..

  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Class 'Cartalyst\Stripe\Laravel\StripeServiceProvider' not found


Script php artisan optimize handling the post-update-cmd event returned with error code 1

What am I missing here?

Ovidiu G
  • 1,253
  • 5
  • 25
  • 47

1 Answers1

4

You need to clear config cache. Run php artisan config:clear command to fix this.

If you still see the error message when you run the artisan commands, clear the bootstrap/cache directory manually.

Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279
  • I tried php artisan config:clear but when I run this, I'm getting the same error.. – Ovidiu G Apr 01 '17 at 08:07
  • In this case, make full-text search for `StripeServiceProvider` on your project. If nothing found, delete cache manually. Go to `bootstrap/cache` directory and delete `services.php` file. – Alexey Mezenin Apr 01 '17 at 08:13
  • Your answer helped me.. The problem was indeed in the cache directory.. In config.php, I noticed that I added some lines by mistake.. – Ovidiu G Apr 01 '17 at 08:23