Система может отправлять почту (из Laravel), но php artisan
(которая использует php cli) вызывает ошибки и не отправляет почту.
Для ясности я использую драйвер базы данных sync
.
С php artisan tinker
:
> Mail::queue('emails.test', [], function($message) { $message->to({email})->subject('Test'); });
Ошибка:
PHP Warning: file_get_contents(/home/{user}/{project}/releases/20190425
154529/vendor/d11wtq/boris/lib/Boris/EvalWorker.php(152) : eval()'d code): failed to open stream: No such
file or directory in /home/{user}/{project}/releases/20190425154529/ven
dor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php on line 190
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The closure was not found within the abstract syntax tree.' in /home/{user}/{project}/releases/2019
0425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php:119
Stack trace:
#0 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php(172): Jeremeamia\SuperClosure\ClosureParser->getClosureAbstractSyntaxTree()
#1 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php(108): Jeremeamia\SuperClosure\ClosureParser->getCode()
#2 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php(75): Jeremeamia\SuperClosure\SerializableClosure->createState()
#3 [internal function]: Jeremeamia\Super in /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php on line 119
Я запутал свои пути с помощью {obfuscation}
повсюду (чтобы быть ясным).
Любая помощь очень ценится.