英文:
Laravel 8 Queue Connection not configured although my queue working fine, but generate log in laravel.log file in every second
问题
Laravel 8 队列运行正常,但每秒在 storage/laravel.log 文件中生成的日志是:[database--queue=default] 队列连接未配置。 {"exception":"[object] (InvalidArgumentException(code: 0): [database--queue=default] 队列连接未配置。
英文:
Laravel 8 queue working fine, but every second generate log in storage/laravel.log file is : The [database--queue=default] queue connection has not been configured. {"exception":"[object]
(InvalidArgumentException(code: 0): The [database--queue=default] queue connection has not been configured
答案1
得分: 1
确保你在 configs/queue.php 文件中正确配置你的驱动程序,例如:
'connections' => [
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
]
英文:
Make sure you configure your driver properly in the configs/queue.php, for example:
'connections' => [
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论