T
T
Troodi Larson2018-04-29 16:46:49
Laravel
Troodi Larson, 2018-04-29 16:46:49

Web server configuration for Laravel?

Friends, I just can’t find the info on how and where to set up the web server correctly under laravel. The problem is this: all my directories are accessible from the browser, but they should only be public, and {{ url('') }} doesn't work, because there is clearly no public path. It would be possible to solve the problem with the root .htaccess, but I would like to see the correct option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yan-s, 2018-04-29
@troodi

I have all directories accessible from the browser, but should only be public

Because the root web directory must be exactly public, and not the root of the project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question