how to remove public from url in laravel 7 code example
Example 1: Remove “/public” from Laravel route
Rename server.php in your Laravel root folder to index.php
Copy the .htaccess file from /public directory to your Laravel root folder.
Example 2: how to remove public from url in laravel
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]