Laravel not working on live server
In this blog you will learn how to remove public form laravel main url, on server by default laravel run on public folder that’s why laravel not run on server directly by domain name. Let’s see the following steps:
Step1: Move your all files from the public folder to the root directory
Step2: open your index.php file do the following changes:
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
to
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';