I'm trying to get beanstalk up and running and I'm getting the exception when trying to run Queue::push():
Class 'Pheanstalk_Pheanstalk' not found
I've run composer require pda/pheanstalk, and even regenerated my auto-load file an extra time.
It's happening in ./vendor/laravel/framework/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php
Any ideas?
In composer.json, replace the pda/pheanstalk requirement line by
"pda/pheanstalk": "2.0.*"
Run
composer update
Warning: will also update Laravel.
Source: http://laravel.io/forum/07-17-2014-class-pheanstalk-pheanstalk-not-found
Disregard. Found the answer at https://github.com/laravel/framework/issues/746. Apparently the newest version has been reorganized or something.
You may be using pheanstalk 3 which didn't work for me with Laravel 4. Use this command to switch to an older version:
composer require pda/pheanstalk "~2.1"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With