【问题标题】:Laravel Setup: Can't install MonologLaravel 设置:无法安装 Monolog
【发布时间】:2014-08-12 02:13:38
【问题描述】:

我只是尝试按照文档 (http://laravel.com/docs/quick#installation - "Via Composer") 中的说明安装新的 Laravel 实例。从 Composer 收到此错误:

...
Writing lock file
Generating autoload files
PHP Fatal error:  Class 'Monolog\Logger' not found in ...\src\vendor\laravel\framework\src\Illuminate\Log\LogServiceProvider.php on line 23
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Monolog\\Logger' not found","file":"...\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Log\\LogServiceProvider.php","line":23}}Script php artisan clear-c
ompiled handling the post-install-cmd event returned with an error: PHP Fatal error:  Class 'Monolog\Logger' not found in ...\src\Illuminate\Log\LogServiceProvider.php on line 23

PHP Fatal error:  Class 'Monolog\Logger' not found in ...\src\Illuminate\Log\LogServiceProvider.php on line 23
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Monolog\\Logger' not found","file":"...\\src\\vendor\\laravel\\framework\\src\\Illuminate\\Log\\LogServiceProvider.php","line":23}}Script php artisan optimiz
e handling the post-install-cmd event returned with an error: PHP Fatal error:  Class 'Monolog\Logger' not found in ...\src\Illuminate\Log\LogServiceProvider.php on line 23

嗯,现在该怎么办?试图在官方论坛上发布它,但由于那里的错误而无法发布(论坛基于 Laravel ......是的,这就是 Karma!)。

【问题讨论】:

标签: php laravel laravel-4


【解决方案1】:

解决方案:“composer dumpautoload -o”

【讨论】:

    猜你喜欢
    • 2016-08-10
    • 1970-01-01
    • 2023-01-30
    • 2017-11-05
    • 2017-10-26
    • 1970-01-01
    • 2016-09-26
    • 2020-11-13
    • 1970-01-01
    相关资源
    最近更新 更多