So, I've installed it and commented out where those constants are called to be able to run
composer update.Then, after uncommenting them, when I call Mail::queue() in the framework, it inserts the message in the queue! Yay!
But now I must do php artisan queue:listen in order to start the queue listener.
When I do, it gives me this error:
{"error":{"type":"ErrorException","message":"Use of undefined constant AMQP_EX_TYPE_DIRECT - assumed 'AMQP_EX_TYPE_DIRECT'","file":"C:\\Ampps\\www\\actividades2\\app\\config\\queue.php","line":84}}{"error":{"type":"ErrorException","message":"Use of undefined constant AMQP_EX_TYPE_DIRECT - assumed 'AMQP_EX_TYPE_DIRECT'","file":"C:\\Ampps\\www\\actividades2\\app\\config\\queue.php","line":84}}{"error":{"type":"ErrorException","message":"Use of undefined constant AMQP_EX_TYPE_DIRECT - assumed 'AMQP_EX_TYPE_DIRECT'","file":"C:\\Ampps\\www\\actividades2\\app\\config\\queue.php","line":84}}
Also, if I run
composer update, it still gives me those same errors.
I've installed the PECL AMQP extension this way:
- Since in my phpinfo() says the architecture is x86 and Thread Safety is enabled, I've downloaded the 1.4.0 DLL.
- Copied rabbitmq.1.dll to C:\Windows\SysWOW64 since the system is x64
- Copied php_amqp.dll to php/ext.
- Added extension=php_amqp.dll to apache/php.ini.
Thanks for your help!