我很茫然,我找不到其他人遇到这个问题,所以感觉我错过了一些明显的东西,但我无法弄清楚。当我尝试使用
登录 Laravel ( Reference Here ) 中的特定 channel 时Log::channel('a channel')->info('a message');
我得到:
PHP Error: Call to undefined method Illuminate/Log/Writer::channel()
最佳答案
也许您导入错误。
您是否尝试导入use Illuminate\Support\Facades\Log;
?
关于php - Laravel Log channel 未定义方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51656267/