The reason why I'm doing that is Laravel has the document root in a subdirectory is so that you don't have to expose your code to the public.
The folder structure in my localhost is
Test
Test/laravel/
Test/public_html/
where laravel contains all the folder of root without the public folder and public_html contains the public files.
And I have changed in below lines in public_html/index.php
:
require __DIR__.'./../laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'./../laravel/bootstrap/app.php';
I have followed the solution for solving the problem but couldn't solve it as I'm using 5.2. If anyone has done this before please provide a valid solution.
Thanks in advance.