I have a shared hosting with bluehost.com... can I just put my project on that.. like upload public files to public_html and others to root directory and backup MySQL DB and upload it to my shared hosting then edit my .env file... will this actually work with Laravel?
I searched most online resources and it requires ssh access to deploy, but the way I explained should not require that right?
I mean this way you don't have to go throw terminal access right?
I used to do that with WordPress when I want to set everything locally then upload it and edit URLs from the dashboard and stuff...
Yes it would work.
But you have to ensure one thing that, in your cpanel your domain point to the /public
folder of laravel project.
Normally cPanel points the http requests to public_html
folder, but laravel start from its public
folder. You can achieve this by two way.
By pointing your server to straight to public
folder
Copying the index.php
to the public_html
, in that case you have to edit index.php
to run the laravel project properly. And I don't recommend this step. Step 1 is lot more easier.