Your hosting and configuration should have the ff:
Appropriate PHP version compatible to your Laravel project.
Composer and Laravel installed.
Proper web server configuration for Apache, Nginx, Litespeed, etc. This is most likely where your problem is, where you should only expose the /public folder as the only public directory of your page.
2
Answers
I installed composer and I add
.env
file the run some commands likeThen resolved problem.
Your hosting and configuration should have the ff: