In shared hosting main domain we can't set domain path. it's run direct index.php file but our index.php file is in public folder. Now this moment we have to provide index.php file in main folder. then we are provide you best way how to run without public index.php file.
You have many question like how to run index.php file in main folder in laravel. how to give js and css file path in layout file. how to access server.php file index.php file. this all question you have to follow two steps.
First Rename File
First Rename "server.php" file to "index.php" file.
Second Cut Files and Folders
Then cut all file and folder from public folder remaining index.php and past all file and folder in main folder. then run project using following command
php -S localhost:8000
I hope it can help you...