1. Create local directory in your project directory.
2. Move all files and folders except public directory in the local directory.
3. Move all files and folders from public directory to project directory and remove public directory.
4. Open index.php file and replace
require __DIR__.'/../bootstrap/autoload.php'; with require __DIR__.'/local/bootstrap/autoload.php';
AND
$app = require_once __DIR__.'/../bootstrap/app.php'; with $app = require_once __DIR__.'/local/bootstrap/app.php';
5. Now you can run your project without artisan serve command "http://localhost/project"
2. Move all files and folders except public directory in the local directory.
3. Move all files and folders from public directory to project directory and remove public directory.
4. Open index.php file and replace
require __DIR__.'/../bootstrap/autoload.php'; with require __DIR__.'/local/bootstrap/autoload.php';
AND
$app = require_once __DIR__.'/../bootstrap/app.php'; with $app = require_once __DIR__.'/local/bootstrap/app.php';
5. Now you can run your project without artisan serve command "http://localhost/project"