Search code examples
phplaravel-5controllercomposer-phplaravel-artisan

Laravel 5 Failed opening required bootstrap/../vendor/autoload.php


I have recently installed Laravel 5 via Composer. I tried creating a new controller using Artisan and got the following error. Am I missing something?

bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.


Solution

  • Turns out I didn't enable openssl in my php.ini so when I created my new project with composer it was installed from source. I changed that and ran

    composer update
    

    now the vendor folder was created.