Answer the question
In order to leave comments, you need to log in
Laravel to regular hosting?
I uploaded the laravel project to a regular hosting, I ran into the fact that the path has to be written /public/
That is, /public is available on /public and on /, but when you write
$_SERVER['DOCUMENT_ROOT'] в нем нет /public
dd($_SERVER['DOCUMENT_ROOT']);
"C:/xampp/htdocs/public"
my server "/home/d/dfavorit/public_html"
hosting
Answer the question
In order to leave comments, you need to log in
I have a hosting folder www.
I just uploaded everything one level up, moved the contents of public to www, deleted the existing empty public, created a symbolic link public to www.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question