My laravel project work good in localhost by artisan serve commend.
Now i'm trying to host it on web host.
I upload my project under public_html and copy all files from public folder i also edit app.php 'debug' => env('APP_DEBUG', true), for showing the error.
i edit index.php
require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
but it still give a 500 Internal server error back.
I also try an another way,
Upload my project into root directory except public folder and upload public folder into public_html directory .
and i edit index.php as
require __DIR__.'/laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/laravel/bootstrap/app.php';
i can't find what wrong with my code. how can i deploy my laravel 5.2 project into a web hosting.?