laravel 8 project live on serve and remove public/index.php file from url code example
Example 1: public laravel htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Example 2: laravel remove index.php from url
laravel remove index.php from url