I'm following the following Structure as I don't want to expose my code to the public.
The folder structure in my localhost is
tbt
tbt/user/
tbt/public_html/
where user 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__.'/../user/bootstrap/autoload.php';
$app = require_once __DIR__.'/../user/bootstrap/app.php';
But when i run the application,
I'm getting Url like localhost/tbt/user/xxxx But it should be localhost/tbt/xxx
I have followed this solution for solving the problem but couldn't solve it as My application is on Laravel 5. Anyone who can help me to find the solution please?
require __DIR__.'/bootstrap/autoload.php'; $app = require_once __DIR__.'/bootstrap/app.php';Warning: require(C:\xampp\htdocs\public_html/bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\index.php on line 27Line 27 :` require DIR.'/bootstrap/autoload.php';`tbl, try to add/..before/bootstrapWarning: require(C:\xampp\htdocs\public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\index.php on line 27