setting when separates files of Laraship

Laraship QuestionsCategory: Configurationsetting when separates files of Laraship
nao asked 6 years ago

I have a question about setting when separates files of Laraship.

People say that the core files of Laravel shouldn't place in public folder because of security problem.

So I'd like to separate into files in public folder and files in not public folder like page No.1 of attached pdf file.

My question is that when I separate files, which setting(s) do I modify in Laraship?

I understand to modify public/index.php, but I don't know other setting(s).

Actually I separated files and modified public/index.php.

Then html source shows that external css files and JavaScript files aren't set in href and src attribute like page No.2 of attached pdf file.

Attachments
1 Answers
laraship Staff answered 6 years ago

Hello, The www folder should be mapping to the "public" folder under laraship project , this can be done be modifying apache or nginx virtual host.
if you dont have access to this you can add .htaccess file in the root folder, rename .htaccess.txt to .htaccess

Attachments