How to remove public from URL in Laravel

How to remove public from URL in Laravel

How to run Laravel from the root directory, not from public | Laravel remove public from URL | Laravel public folder remove

• Go to mainproject/public
a. .htacess
b. favicon.ico
c. index.php
d. robots.txt
e. web.config
1. cut these 5 files from the public folder, and then paste on the main project folder that means outside of public folder… mainproject/files
2. Next after paste ,open index.php ,modify
• require __DIR__.’/…/bootstrap/autoload.php’; to
• require __DIR__.’/bootstrap/autoload.php’;
3. modify
$app = require_once __DIR__.’/../bootstrap/app.php’; to
$app = require_once __DIR__.’/bootstrap/app.php’;

Let’s catch up? Follow me on Social media mentioned below!

● Facebook:
● Website:

For any queries, feel free to shoot me an email
[email protected]
==============Get Updated==========================
You don’t subscribe yet then click here for getting the update

//////////////////////////////////////////////related tags///////////
Laravel, Laravel url, How, To, Remove, Public, From, Url, In, How to remove public from url in laravel, How to remove public from url in laravel 5.7, How to remove public from url in laravel 5.8, How to remove public from url in laravel using htaccess, How to remove public from url in laravel on server, :laravel hindi, Laravel 5 tutorial , Laravel tutorial for beginners, Laravel 5 tutorial for beginners step by step , Laravel 5.1, Remove public, Laravel 5.2, Clean laravel url,development:laravel,Laravel 5.5,Laravel tutorials,Laravel 5,Php tutorial,Laravel tips,How to,Tutorial:laravel,Public folder remove,Laravel remove public folder from url,Laravel 4 remove public folder,Laravel 5 remove public folder,Laravel 4.2 remove public folder,Laravel public folder remove,Remove public folder from laravel,Remove public folder in laravel:laravel,Laravel5.6,Laravel remove public,Laravel remove .env,Laravel from scratch,Learn laravel,Laravel from basic,Laravel step by step,Remove public laravel,how to remove public from url in laravel,Remove public from url in laravel,Learn laravel,Laravel (software):remove public from path in laravel,Laravel tutorial,Laravel tutorial in hindi,Learning laravel,Laravel project,Laravel in hindi,Laravel 5.7,Laravel 5.7,Laravel 5.7 tutorial for beginners,Route in laravel,Controller in laravel,Laravel 5.7 series,Best laravel series,Model in laravel,View in laravel.:remove,5.3:laravel,From url,Asset url,How to remove,Laravel route,Tutorial,Laravel helper,Laravel course,Index:web technology,Programming,How to remove public directory in laravel 5.7,Host programming,Removing public from url,Laravel’s .htaccess to remove,How to remove public from laravel 5.7,How to remove public from laravel 5.4,Laravel – remove public from url using htaccess,How to remove “public/index.php” from url in laravel:upload a laravel project to a shared hosting,Deploy laravel 5.3 shared hosting,Laravel shared hosting,Upload laravel project to shared hosting

#RemovePublicFromLaravelUrl #RemovePublic #ClearPublicUrl #bons #bonstutorial #bons_laravel

14 thoughts on “How to remove public from URL in Laravel

  1. Thanks dude you save me, to fix your files i recommend move your binders from public to root and thats all

  2. No brother, it is working without public but no css is working I mean all CSS and JS are not woring still no images are showing … have you solution of this too

  3. How could I do this in Laravel 5.7?? I have done all this but I have the next issue: I can't load the css files from my master.blade.php. Any sugestion. I have tried this: <link rel="stylesheet" href="{{asset('css/bootstrap.min.css')}}"> But I didn't work. All the css styles and js's are in public folder. Any suggestion please??

  4. hi (°_°)/, good job!!!
    I have a question, this way works in a production environment???
    and in this way it is safe in a production environment???

Leave a Reply

Your email address will not be published. Required fields are marked *