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
I solve this issue by doing the following:
Check the
minimum-stability
value in composer.json and set it to stable:Update you composer:
Re-run composer udpate:
Then run any artisan commands and enjoy coding!
Finally it works for me after running these two commands:
Then:
According to this thread. Change
minimum-stability
fromdev
tostable
incomposer.json
, then run an update. Also try to do adump-autoload
.