Create or edit the .htaccess file in the Laravel root directory and configure the RewriteRule to remove “public/index.php” from the URL.
You must have mod_rewrite enable on your Apache server. The rewrite module is required to apply these settings. You also have enabled .htaccess in Apache virtual host for Laravel.
Edit the .htaccess file so that it contains the following code:
RewriteRule ^(.*)$ public/$1 [L]
Now you should be able to access the website without the “/public/index.php/” part.