问题标签 [contextual-binding]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 如何为 Logger 通道使用 Laravel 上下文绑定?
在 Laravel 文档中,我看到了示例:
https://laravel.com/docs/8.x/container#contextual-binding
我想在存储磁盘中使用不同的日志通道。
https://laravel.com/docs/8.x/logging#writing-to-specific-channels
我尝试:
但我得到错误:
我也试过:
和同样的错误。
我没有在文档中看到如何正确执行此操作的示例。没什么。