Laravel 5 Class Log Could not be Found

前端 未结 1 469
南旧
南旧 2021-02-19 06:47

I am elbows deep in Laravel 5 and it\'s proving to be quite the bugger with the lack of autoloading. I am running into the weirdest of errors. I can\'t Log anything on my localh

相关标签:
1条回答
  • 2021-02-19 07:33

    I don't think you have a Log class file in App\Http\Controllers directory. So you must add

    use Log;
    

    if you are using Laravel's logger, or

    use Path\To\Your\Log;
    

    for a custom logger.

    0 讨论(0)
提交回复
热议问题