As with a lot of hosts our public folder is called public_html
. This is on shared hosting so can't be changed. I've changed the public
folder to public_html
to reflect this, but when I do artisan serve
stops working. Every time I try to start it I get:
[ErrorException]
chdir(): No such file or directory (errno 2)
If I rename the folder back to public then artisan serve
starts working again.
I've tried following this post on laracasts, and the user in the post reports artisan works for them, but it made no difference to me. How can I change the folder and have artisan serve
work?