4
4
4sadly2020-07-24 12:50:58
Web development
4sadly, 2020-07-24 12:50:58

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

1 answer(s)
A
Anton Anton, 2020-07-24
@4sadly

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 question

Ask a Question

731 491 924 answers to any question