thanks for the answers. However, my question was basically about the folder structure. I do not run artisan command on the hosting.
With L4 I divided the whole laravel folder in 2 folders. I put public folder in public_html folder and the rest of the folders like app, vendor and etc. put to a folder i created. Then I changed paths in new_folder/bootstrap/paths.php and in public_html/index.php. That was the whole process.
In L5 the whole folder structure has changed, so I was thinking about the possibilities of running L5 on shared hosting.
I just posted an article about publishing to a shared hosting (Heart Internet in the UK).
I focussed on using subdomains, but the principles are the same. It was a lot easier with L5 than with L4 with only the paths in the index.php folder needing to be changed.
It works in shared hosting perfectly.
I just renamed public to public_html (and I added a public_path() override registrar in App Service Provide) then uploaded my localhost project in the server.
Follow the below given simplest steps to setup laravel on server.
First you need to install composer then after install laravel into your server. Once laravel installation process completed, copy and paste all the file from(check for hidden files as well) /public to SERVERROOT/laraproject/. Here laraproject is new directory need create into server root folder.
Now you just need to setup the SERVERROOT/laraproject/public/index.php like:
Copy SERVERROOT/laraproject/public/index.php and to SERVERROOT/index.php and create .htaccess like SERVERROOT/.htaccess
Find and replace below lines into SERVERROOT/index.php:
require __DIR__.'/../bootstrap/autoload.php'; to require DIR.'/../laraproject/bootstrap/autoload.php';
$app = require_once DIR.'/../bootstrap/start.php'; to $app = require_once DIR.'/../laraproject/bootstrap/start.php';
Add below lines into SERVERROOT/.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^awesome-project
RewriteRule ^(.*)$ laraproject/$1 [L]
Now your laravel application 'laraproject' is ready to run. Enjoy!