laravel5: chdir(): No such file or directory (errno 2)

it means that your Laravel Application Can’t Find the public folder.

I got it to work by

changing :

chdir($this->laravel->publicPath());

in :

vendor/laravel/framework/src/Illuminate/Foundation/Console/ServeCommand.php

To :

chdir("https://stackoverflow.com/");

Leave a Comment