Creating new laravel project and this error came up

300 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 answers

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