Creating new laravel project and this error came up

315 Views Asked by At

Creating new laravel project and this error came up

[ErrorException] chdir(): No such file or directory (errno 2)

enter image description here

1

There are 1 best solutions below

1
On

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('/');