Search code examples
laravellaravel-4

Class 'Monolog\Logger' not found, installation error in Laravel 4


I installed Laravel without using composer with typing this command:

C:\wamp\www\travail>laravel new project

It seems that it is on the good way.

Creating application...

Application ready! Build something amazing.

But when I tried to open my project here:

wamp-->localhost-->travail-->project-->public

I got this error:

Class 'Monolog\Logger' not found


Solution

  • I solve this issue by doing the following:

    1. Check the minimum-stability value in composer.json and set it to stable:

      "minimum-stability": "stable"
      
    2. Update you composer:

      composer self-update
      
    3. Re-run composer udpate:

      composer update
      

    Then run any artisan commands and enjoy coding!